package com.lanchewuyou.user.driver.lipeiui;

import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;

import com.afollestad.materialdialogs.MaterialDialog;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.lanchewuyou.user.driver.R;
import com.lanchewuyou.user.driver.layouts.ExpandLayout;
import com.lanchewuyou.user.driver.layouts.RippleView;
import com.lanchewuyou.user.driver.modul.Config;
import com.lanchewuyou.user.driver.modul.OkHttpClientManager;
import com.squareup.okhttp.Request;

import org.json.JSONException;
import org.json.JSONObject;

import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 维修信息选择确认界面
 * 通过不修和维修的button计算维修总数，默认为0，按下为1
 * (这个界面还要改的话就自己重写吧.逻辑太乱了)
 */
public class CarfixInforActivity extends AppCompatActivity implements View.OnClickListener,
        ExpandLayout.CallbackHuaYes, ExpandLayout.CallbackHuaNo, ExpandLayout.CallbackBanYes, ExpandLayout.CallbackBanNo, ExpandLayout.CallbackPenYes, ExpandLayout.CallbackPenNo {
    private Toolbar mToolbar;
    private ImageView wholeCarImg;
    private Button carInforFixNextBtn;
    public static CarfixInforActivity instance;
    private Toast toast = null;
    private static String DRIVERID;
    private ProgressDialog progressDialog, progressUploadDialog;

    private void showTextToast(String msg) {
        if (toast == null) {
            toast = Toast.makeText(CarfixInforActivity.this, msg, Toast.LENGTH_SHORT);
        } else {
            toast.setText(msg);
        }
        toast.show();
    }


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_carfix_infor);
        initViews();
        initImages();
        SharedPreferences sharedPreferences = getSharedPreferences(Config.PASSWORD_PATH, Activity.MODE_PRIVATE);
        DRIVERID = sharedPreferences.getString("driverid", "");
        initExpandLayout();
        progressDialog.show();
        instance = this;
        OkHttpClientManager.getAsyn(Config.DRIVERORDERDETAIL + "&driverid=" + DRIVERID + "&orderid=" + PickCarActivity.orderId, new OkHttpClientManager.StringCallback() {
            @Override
            public void onFailure(Request request, IOException e) {
                showTextToast("没有获取到详情");
                progressDialog.dismiss();
            }

            @Override
            public void onResponse(String response) {
                Log.d("Pickcar", response);
                try {
                    JSONObject jsonObject = new JSONObject(response);
                    String status = jsonObject.getString("status");
                    if (status.equals("1")) {
                        JSONObject info = jsonObject.getJSONObject("info");
                        String repair = info.getJSONObject("carinfo").getString("repairinfo");
                        if (repair.equals("")) {
                            Log.d("repair", "kong");
                            progressDialog.dismiss();
                        } else {
                            progressDialog.dismiss();
                            new MaterialDialog.Builder(CarfixInforActivity.this)
                                    .title("您已录入过维修信息")
                                    .content("确定将跳过此界面，取消将重新录入维修信息。")
                                    .positiveText("确定")
                                    .negativeText("取消")
                                    .callback(new MaterialDialog.ButtonCallback() {
                                        @Override
                                        public void onPositive(MaterialDialog dialog) {
                                            Intent intent = new Intent(CarfixInforActivity.this, CustomDataActivity.class);
                                            startActivity(intent);
                                            finish();
                                        }

                                        @Override
                                        public void onNegative(MaterialDialog dialog) {
                                            super.onNegative(dialog);
                                        }
                                    })
                                    .show();
                        }
                    } else {
                        showTextToast("没有获取到详情");
                        progressDialog.dismiss();
                    }
                } catch (JSONException e) {
                    e.printStackTrace();
                    progressDialog.dismiss();
                }
            }
        });
    }

    private void initViews() {
        mToolbar = (Toolbar) findViewById(R.id.carinfor_toolbar);
        mToolbar.setTitle("信息确认-维修信息");
        setSupportActionBar(mToolbar);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        getSupportActionBar().setHomeButtonEnabled(true);
        //初始化头部及设置点击事件
        wholeCarImg = (ImageView) findViewById(R.id.carinfor_wholecar);
        banjinNumBtn = (RippleView) findViewById(R.id.banjin_number_btn);
        huahenNumBtn = (RippleView) findViewById(R.id.huahen_number_btn);
        penqiNumBtn = (RippleView) findViewById(R.id.penqi_number_btn);
        carInforFixNextBtn = (Button) findViewById(R.id.carinfor_fix_next_btn);
        carInforFixNextBtn.setOnClickListener(this);
        banjinNumBtn.setOnClickListener(this);
        huahenNumBtn.setOnClickListener(this);
        penqiNumBtn.setOnClickListener(this);
        progressDialog = new ProgressDialog(this);
        progressDialog.setTitle("载入中");
        progressDialog.setMessage("请稍等");
        progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
        progressDialog.setCancelable(true);
        progressUploadDialog = new ProgressDialog(this);
        progressUploadDialog.setTitle("上传中");
        progressUploadDialog.setMessage("请稍等");
        progressUploadDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
        progressUploadDialog.setCancelable(true);
    }


    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.huahen_number_btn:
                int[] huahenyesnums = new int[]{huahenYesQiangangNum, huahenYesZuoQianyeziNum, huahenYesZuoqianmenNum, huahenYesZuohoumenNum,
                        huahenYesZuohouyezibanNum, huahenYesJigaiNum, huahenYesZuofanguangjingNum, huahenYesYouhoumenNum, huahenYesYouqianmenNum,
                        huahenYesYouqianyezibanNum, huahenYesHougaiNum, huahenYesZuodabianNum, huahenYesYoudabianNum, huahenYesYoufanguangjingNum,
                        huahenYesZuoqianlunguNum, huahenYesZuohoulunguNum, huahenYesYouqianlunguNum, huahenYesYouhoulunguNum,
                        huahenYesHougangNum, huahenYesYouhouyezibanNum};
                int[] huahennonums = new int[]{huahenNoQiangangNum, huahenNoZuoQianyeziNum, huahenNoZuoqianmenNum, huahenNoZuohoumenNum,
                        huahenNoZuohouyezibanNum, huahenNoJigaiNum, huahenNoZuofanguangjingNum, huahenNoYouhoumenNum, huahenNoYouqianmenNum,
                        huahenNoYouqianyezibanNum, huahenNoHougaiNum, huahenNoZuodabianNum, huahenNoYoudabianNum, huahenNoYoufanguangjingNum,
                        huahenNoZuoqianlunguNum, huahenNoZuohoulunguNum, huahenNoYouqianlunguNum, huahenNoYouhoulunguNum,
                        huahenNoHougangNum, huahenNoYouhouyezibanNum};
                Bundle b1 = new Bundle();
                b1.putString("type", "huahen");
                b1.putIntArray("huahenyesnum", huahenyesnums);
                b1.putIntArray("huahennonum", huahennonums);
                Intent intent1 = new Intent(this, FixInforActivity.class);
                intent1.putExtras(b1);
                startActivity(intent1);
                break;
            case R.id.banjin_number_btn:
                //钣金，维修
                int[] banjinyesnums = new int[]{banjinYesQiangangNum, banjinYesZuoQianyeziNum, banjinYesZuoqianmenNum, banjinYesZuohoumenNum,
                        banjinYesZuohouyezibanNum, banjinYesJigaiNum, banjinYesZuofanguangjingNum, banjinYesYouhoumenNum, banjinYesYouqianmenNum,
                        banjinYesYouqianyezibanNum, banjinYesHougaiNum, banjinYesZuodabianNum, banjinYesYoudabianNum, banjinYesYoufanguangjingNum,
                        banjinYesZuoqianlunguNum, banjinYesZuohoulunguNum, banjinYesYouqianlunguNum, banjinYesYouhoulunguNum,
                        banjinYesHougangNum, banjinYesYouhouyezibanNum};

                //钣金，不修
                int[] banjinnonums = new int[]{banjinNoQiangangNum, banjinNoZuoQianyeziNum, banjinNoZuoqianmenNum, banjinNoZuohoumenNum,
                        banjinNoZuohouyezibanNum, banjinNoJigaiNum, banjinNoZuofanguangjingNum, banjinNoYouhoumenNum, banjinNoYouqianmenNum,
                        banjinNoYouqianyezibanNum, banjinNoHougaiNum, banjinNoZuodabianNum, banjinNoYoudabianNum, banjinNoYoufanguangjingNum,
                        banjinNoZuoqianlunguNum, banjinNoZuohoulunguNum, banjinNoYouqianlunguNum, banjinNoYouhoulunguNum,
                        banjinNoHougangNum, banjinNoYouhouyezibanNum};
                Bundle b2 = new Bundle();
                b2.putString("type", "banjin");
                b2.putIntArray("banjinyesnum", banjinyesnums);
                b2.putIntArray("banjinnonum", banjinnonums);
                Intent intent2 = new Intent(this, FixInforActivity.class);
                intent2.putExtras(b2);
                startActivity(intent2);
                break;
            case R.id.penqi_number_btn:
                //喷漆，维修
                int[] penqiyesnums = new int[]{penqiYesQiangangNum, penqiYesZuoQianyeziNum, penqiYesZuoqianmenNum, penqiYesZuohoumenNum,
                        penqiYesZuohouyezibanNum, penqiYesJigaiNum, penqiYesZuofanguangjingNum, penqiYesYouhoumenNum, penqiYesYouqianmenNum,
                        penqiYesYouqianyezibanNum, penqiYesHougaiNum, penqiYesZuodabianNum, penqiYesYoudabianNum, penqiYesYoufanguangjingNum,
                        penqiYesZuoqianlunguNum, penqiYesZuohoulunguNum, penqiYesYouqianlunguNum, penqiYesYouhoulunguNum,
                        penqiYesHougangNum, penqiYesYouhouyezibanNum};

                //喷漆，不修
                int[] penqinonums = new int[]{penqiNoQiangangNum, penqiNoZuoQianyeziNum, penqiNoZuoqianmenNum, penqiNoZuohoumenNum,
                        penqiNoZuohouyezibanNum, penqiNoJigaiNum, penqiNoZuofanguangjingNum, penqiNoYouhoumenNum, penqiNoYouqianmenNum,
                        penqiNoYouqianyezibanNum, penqiNoHougaiNum, penqiNoZuodabianNum, penqiNoYoudabianNum, penqiNoYoufanguangjingNum,
                        penqiNoZuoqianlunguNum, penqiNoZuohoulunguNum, penqiNoYouqianlunguNum, penqiNoYouhoulunguNum,
                        penqiNoHougangNum, penqiNoYouhouyezibanNum};
                Bundle b3 = new Bundle();
                b3.putString("type", "penqi");
                b3.putIntArray("penqiyesnum", penqiyesnums);
                b3.putIntArray("penqinonum", penqinonums);
                Intent intent3 = new Intent(this, FixInforActivity.class);
                intent3.putExtras(b3);
                startActivity(intent3);
                break;
            case R.id.carinfor_fix_next_btn:
                progressUploadDialog.show();
                //讲统计结果组装为json数组
                Log.d("map", "begin");
                Gson gson = new GsonBuilder().enableComplexMapKeySerialization().create();
                int[][] ints = new int[][]{{huahenQiangang, banjinQiangang, penqiQiangang}, {huahenZuoQianyezi, banjinZuoQianyezi, penqiZuoQianyezi},
                        {huahenZuoqianmen, banjinZuoqianmen, penqiZuoqianmen}, {huahenZuohoumen, banjinZuohoumen, penqiZuohoumen},
                        {huahenZuohouyeziban, banjinZuohouyeziban, penqiZuohouyeziban}, {huahenJigai, banjinJigai, penqiJigai},
                        {huahenZuofanguangjing, banjinZuofanguangjing, penqiZuofanguangjing}, {huahenYouhoumen, banjinYouhoumen, penqiYouhoumen},
                        {huahenYouqianmen, banjinYouqianmen, penqiYouqianmen}, {huahenYouqianyeziban, banjinYouqianyeziban, penqiYouqianyeziban},
                        {huahenHougai, banjinHougai, penqiHougai}, {huahenZuodabian, banjinZuodabian, penqiZuodabian},
                        {huahenYoudabian, banjinYoudabian, penqiYoudabian}, {huahenYoufanguangjing, banjinYoufanguangjing, penqiYoufanguangjing},
                        {huahenZuoqianlungu, banjinZuoqianlungu, penqiZuoqianlungu}, {huahenZuohoulungu, banjinZuohoulungu, penqiZuohoulungu},
                        {huahenYouqianlungu, banjinYouqianlungu, penqiYouqianlungu}, {huahenYouhoulungu, banjinYouhoulungu, penqiYouhoulungu},
                        {huahenHougang, banjinHougang, penqiHougang}, {huahenYouhouyeziban, banjinYouhouyeziban, penqiYouhouyeziban}};
                Map<String, Object> mapMap = new LinkedHashMap<>();
                for (int i = 0; i < ints.length; i++) {
                    Map<String, String> map = new LinkedHashMap<>();
                    map.put("1", ints[i][0] + "");
                    map.put("2", ints[i][1] + "");
                    map.put("3", ints[i][2] + "");
                    mapMap.put((i + 1) + "", map);
                }
                final String s = gson.toJson(mapMap);
                Log.d("map", s);
                String url = Config.CARFIXINFOR + PickCarActivity.orderId + "&driverid=" + DRIVERID + "&repairinfo=" + s;
                RequestQueue mQueue = Volley.newRequestQueue(CarfixInforActivity.this);
                StringRequest stringRequest = new StringRequest(url,
                        new Response.Listener<String>() {
                            @Override
                            public void onResponse(String response) {
                                Log.d("TAG", response);
                                try {
                                    JSONObject jsonObject = new JSONObject(response);
                                    String status = jsonObject.getString("status");
                                    Log.d("carfix", status);
                                    if (status.equals("1")) {
                                        Log.d("carfix", "信息上传成功");
                                        Intent intent = new Intent(CarfixInforActivity.this, CustomDataActivity.class);
                                        startActivity(intent);
                                        progressUploadDialog.dismiss();
                                    } else {
                                        Log.d("carfix2", "信息上传失败");
                                        progressUploadDialog.dismiss();
                                    }
                                } catch (JSONException e) {
                                    e.printStackTrace();
                                    progressUploadDialog.dismiss();
                                }
                            }
                        }, new Response.ErrorListener() {
                    @Override
                    public void onErrorResponse(VolleyError error) {
                        Log.e("TAG", error.getMessage(), error);
                        progressUploadDialog.dismiss();
                    }
                });
                mQueue.add(stringRequest);
            default:
                break;
        }
    }

    @Override
    public void onClickHuaYes(String title) {
        switch (title) {
            case "前杠":
                if (huahenYesQiangangNum == 0) {
                    expandQiangang.setHuaYesBtnPress(0);
                    huahenYesQiangang.setVisibility(View.VISIBLE);
                    huahenYesQiangangNum = 1;

                    expandQiangang.setHuaNoBtnPress(1);
                    huahenNoQiangang.setVisibility(View.INVISIBLE);
                    huahenNoQiangangNum = 0;
                    huahenQiangang = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());

                } else {
                    expandQiangang.setHuaYesBtnPress(1);
                    huahenYesQiangang.setVisibility(View.INVISIBLE);
                    huahenYesQiangangNum = 0;

                    expandQiangang.setHuaNoBtnPress(1);
                    huahenNoQiangang.setVisibility(View.INVISIBLE);
                    huahenNoQiangangNum = 0;
                    huahenQiangang = 1;

                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "左前叶子板":
                if (huahenYesZuoQianyeziNum == 0) {
                    expandZuoqianyezi.setHuaYesBtnPress(0);
                    huahenYesZuoQianyezi.setVisibility(View.VISIBLE);
                    huahenYesZuoQianyeziNum = 1;

                    expandZuoqianyezi.setHuaNoBtnPress(1);
                    huahenNoZuoQianyezi.setVisibility(View.INVISIBLE);
                    huahenNoZuoQianyeziNum = 0;
                    huahenZuoQianyezi = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandZuoqianyezi.setHuaYesBtnPress(1);
                    huahenYesZuoQianyezi.setVisibility(View.INVISIBLE);
                    huahenYesZuoQianyeziNum = 0;

                    expandZuoqianyezi.setHuaNoBtnPress(1);
                    huahenNoZuoQianyezi.setVisibility(View.INVISIBLE);
                    huahenNoZuoQianyeziNum = 0;
                    huahenZuoQianyezi = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "左前门":
                if (huahenYesZuoqianmenNum == 0) {
                    expandZuoqianmen.setHuaYesBtnPress(0);
                    huahenYesZuoqianmen.setVisibility(View.VISIBLE);
                    huahenYesZuoqianmenNum = 1;

                    expandZuoqianmen.setHuaNoBtnPress(1);
                    huahenNoZuoqianmen.setVisibility(View.INVISIBLE);
                    huahenNoZuoqianmenNum = 0;
                    huahenZuoqianmen = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandZuoqianmen.setHuaYesBtnPress(1);
                    huahenYesZuoqianmen.setVisibility(View.INVISIBLE);
                    huahenYesZuoqianmenNum = 0;

                    expandZuoqianmen.setHuaNoBtnPress(1);
                    huahenNoZuoqianmen.setVisibility(View.INVISIBLE);
                    huahenNoZuoqianmenNum = 0;
                    huahenZuoqianmen = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "左后门":
                if (huahenYesZuohoumenNum == 0) {
                    expandZuohoumen.setHuaYesBtnPress(0);
                    huahenYesZuohoumen.setVisibility(View.VISIBLE);
                    huahenYesZuohoumenNum = 1;

                    expandZuohoumen.setHuaNoBtnPress(1);
                    huahenNoZuohoumen.setVisibility(View.INVISIBLE);
                    huahenNoZuohoumenNum = 0;
                    huahenZuohoumen = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandZuohoumen.setHuaYesBtnPress(1);
                    huahenYesZuohoumen.setVisibility(View.INVISIBLE);
                    huahenYesZuohoumenNum = 0;

                    expandZuohoumen.setHuaNoBtnPress(1);
                    huahenNoZuohoumen.setVisibility(View.INVISIBLE);
                    huahenNoZuohoumenNum = 0;
                    huahenZuohoumen = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "左后叶子板":
                if (huahenYesZuohouyezibanNum == 0) {
                    expandZuohouyeziban.setHuaYesBtnPress(0);
                    huahenYesZuohouyeziban.setVisibility(View.VISIBLE);
                    huahenYesZuohouyezibanNum = 1;

                    expandZuohouyeziban.setHuaNoBtnPress(1);
                    huahenNoZuohouyeziban.setVisibility(View.INVISIBLE);
                    huahenNoZuohouyezibanNum = 0;
                    huahenZuohouyeziban = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandZuohouyeziban.setHuaYesBtnPress(1);
                    huahenYesZuohouyeziban.setVisibility(View.INVISIBLE);
                    huahenYesZuohouyezibanNum = 0;

                    expandZuohouyeziban.setHuaNoBtnPress(1);
                    huahenNoZuohouyeziban.setVisibility(View.INVISIBLE);
                    huahenNoZuohouyezibanNum = 0;
                    huahenZuohouyeziban = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "机盖":
                if (huahenYesJigaiNum == 0) {
                    expandJigai.setHuaYesBtnPress(0);
                    huahenYesJigai.setVisibility(View.VISIBLE);
                    huahenYesJigaiNum = 1;

                    expandJigai.setHuaNoBtnPress(1);
                    huahenNoJigai.setVisibility(View.INVISIBLE);
                    huahenNoJigaiNum = 0;
                    huahenJigai = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandJigai.setHuaYesBtnPress(1);
                    huahenYesJigai.setVisibility(View.INVISIBLE);
                    huahenYesJigaiNum = 0;

                    expandJigai.setHuaNoBtnPress(1);
                    huahenNoJigai.setVisibility(View.INVISIBLE);
                    huahenNoJigaiNum = 0;
                    huahenJigai = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "左反光镜":
                if (huahenYesZuofanguangjingNum == 0) {
                    expandZuofanguangjing.setHuaYesBtnPress(0);
                    huahenYesZuofanguangjing.setVisibility(View.VISIBLE);
                    huahenYesZuofanguangjingNum = 1;

                    expandZuofanguangjing.setHuaNoBtnPress(1);
                    huahenNoZuofanguangjing.setVisibility(View.INVISIBLE);
                    huahenNoZuofanguangjingNum = 0;
                    huahenZuofanguangjing = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandZuofanguangjing.setHuaYesBtnPress(1);
                    huahenYesZuohouyeziban.setVisibility(View.INVISIBLE);
                    huahenYesZuofanguangjingNum = 0;

                    expandZuofanguangjing.setHuaNoBtnPress(1);
                    huahenNoZuofanguangjing.setVisibility(View.INVISIBLE);
                    huahenNoZuofanguangjingNum = 0;
                    huahenZuofanguangjing = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "右后门":
                if (huahenYesYouhoumenNum == 0) {
                    expandYouhoumen.setHuaYesBtnPress(0);
                    huahenYesYouhoumen.setVisibility(View.VISIBLE);
                    huahenYesYouhoumenNum = 1;

                    expandYouhoumen.setHuaNoBtnPress(1);
                    huahenNoYouhoumen.setVisibility(View.INVISIBLE);
                    huahenNoYouhoumenNum = 0;
                    huahenYouhoumen = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandYouhoumen.setHuaYesBtnPress(1);
                    huahenYesYouhoumen.setVisibility(View.INVISIBLE);
                    huahenYesYouhoumenNum = 0;

                    expandYouhoumen.setHuaNoBtnPress(1);
                    huahenNoYouhoumen.setVisibility(View.INVISIBLE);
                    huahenNoYouhoumenNum = 0;
                    huahenYouhoumen = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "右前门":
                if (huahenYesYouqianmenNum == 0) {
                    expandYouqianmen.setHuaYesBtnPress(0);
                    huahenYesYouqianmen.setVisibility(View.VISIBLE);
                    huahenYesYouqianmenNum = 1;

                    expandYouqianmen.setHuaNoBtnPress(1);
                    huahenNoYouqianmen.setVisibility(View.INVISIBLE);
                    huahenNoYouqianmenNum = 0;
                    huahenYouqianmen = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandYouqianmen.setHuaYesBtnPress(1);
                    huahenYesYouqianmen.setVisibility(View.INVISIBLE);
                    huahenYesYouqianmenNum = 0;

                    expandYouqianmen.setHuaNoBtnPress(1);
                    huahenNoYouqianmen.setVisibility(View.INVISIBLE);
                    huahenNoYouqianmenNum = 0;
                    huahenYouqianmen = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "右前叶子板":
                if (huahenYesYouqianyezibanNum == 0) {
                    expandYouqianyeziban.setHuaYesBtnPress(0);
                    huahenYesYouqianyeziban.setVisibility(View.VISIBLE);
                    huahenYesYouqianyezibanNum = 1;

                    expandYouqianyeziban.setHuaNoBtnPress(1);
                    huahenNoYouqianyeziban.setVisibility(View.INVISIBLE);
                    huahenNoYouqianyezibanNum = 0;
                    huahenYouqianmen = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandYouqianyeziban.setHuaYesBtnPress(1);
                    huahenYesYouqianyeziban.setVisibility(View.INVISIBLE);
                    huahenYesYouqianyezibanNum = 0;

                    expandYouqianyeziban.setHuaNoBtnPress(1);
                    huahenNoYouqianyeziban.setVisibility(View.INVISIBLE);
                    huahenNoYouqianyezibanNum = 0;
                    huahenYouqianmen = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "后盖":
                if (huahenYesHougaiNum == 0) {
                    expandHougai.setHuaYesBtnPress(0);
                    huahenYesHougai.setVisibility(View.VISIBLE);
                    huahenYesHougaiNum = 1;

                    expandHougai.setHuaNoBtnPress(1);
                    huahenNoHougai.setVisibility(View.INVISIBLE);
                    huahenNoHougaiNum = 0;
                    huahenHougai = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandHougai.setHuaYesBtnPress(1);
                    huahenYesHougai.setVisibility(View.INVISIBLE);
                    huahenYesHougaiNum = 0;

                    expandHougai.setHuaNoBtnPress(1);
                    huahenNoHougai.setVisibility(View.INVISIBLE);
                    huahenNoHougaiNum = 0;
                    huahenHougai = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "左大边":
                if (huahenYesZuodabianNum == 0) {
                    expandZuodabian.setHuaYesBtnPress(0);
                    huahenYesZuodabian.setVisibility(View.VISIBLE);
                    huahenYesZuodabianNum = 1;

                    expandZuodabian.setHuaNoBtnPress(1);
                    huahenNoZuodabian.setVisibility(View.INVISIBLE);
                    huahenNoZuodabianNum = 0;
                    huahenZuodabian = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandZuodabian.setHuaYesBtnPress(1);
                    huahenYesZuodabian.setVisibility(View.INVISIBLE);
                    huahenYesZuodabianNum = 0;

                    expandZuodabian.setHuaNoBtnPress(1);
                    huahenNoZuodabian.setVisibility(View.INVISIBLE);
                    huahenNoZuodabianNum = 0;
                    huahenZuodabian = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "右大边":
                if (huahenYesYoudabianNum == 0) {
                    expandYoudabian.setHuaYesBtnPress(0);
                    huahenYesYoudabian.setVisibility(View.VISIBLE);
                    huahenYesYoudabianNum = 1;

                    expandYoudabian.setHuaNoBtnPress(1);
                    huahenNoYoudabian.setVisibility(View.INVISIBLE);
                    huahenNoYoudabianNum = 0;
                    huahenYoudabian = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandYoudabian.setHuaYesBtnPress(1);
                    huahenYesYoudabian.setVisibility(View.INVISIBLE);
                    huahenYesYoudabianNum = 0;

                    expandYoudabian.setHuaNoBtnPress(1);
                    huahenNoYoudabian.setVisibility(View.INVISIBLE);
                    huahenNoYoudabianNum = 0;
                    huahenYoudabian = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "右反光镜":
                if (huahenYesYoufanguangjingNum == 0) {
                    expandYoufanguangjing.setHuaYesBtnPress(0);
                    huahenYesYoufanguangjing.setVisibility(View.VISIBLE);
                    huahenYesYoufanguangjingNum = 1;

                    expandYoufanguangjing.setHuaNoBtnPress(1);
                    huahenNoYoufanguangjing.setVisibility(View.INVISIBLE);
                    huahenNoYoufanguangjingNum = 0;
                    huahenYoufanguangjing = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandYoufanguangjing.setHuaYesBtnPress(1);
                    huahenYesYoufanguangjing.setVisibility(View.INVISIBLE);
                    huahenYesYoufanguangjingNum = 0;

                    expandYoufanguangjing.setHuaNoBtnPress(1);
                    huahenNoYoufanguangjing.setVisibility(View.INVISIBLE);
                    huahenNoYoufanguangjingNum = 0;
                    huahenYoufanguangjing = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "左前轮毂":
                if (huahenYesZuoqianlunguNum == 0) {
                    expandZuoqianlungu.setHuaYesBtnPress(0);
                    huahenYesZuoqianlungu.setVisibility(View.VISIBLE);
                    huahenYesZuoqianlunguNum = 1;

                    expandZuoqianlungu.setHuaNoBtnPress(1);
                    huahenNoZuoqianlungu.setVisibility(View.INVISIBLE);
                    huahenNoZuoqianlunguNum = 0;
                    huahenZuoqianlungu = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandZuoqianlungu.setHuaYesBtnPress(1);
                    huahenYesZuoqianlungu.setVisibility(View.INVISIBLE);
                    huahenYesZuoqianlunguNum = 0;

                    expandZuoqianlungu.setHuaNoBtnPress(1);
                    huahenNoZuoqianlungu.setVisibility(View.INVISIBLE);
                    huahenNoZuoqianlunguNum = 0;
                    huahenZuoqianlungu = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "左后轮毂":
                if (huahenYesZuohoulunguNum == 0) {
                    expandZuohoulungu.setHuaYesBtnPress(0);
                    huahenYesZuohoulungu.setVisibility(View.VISIBLE);
                    huahenYesZuohoulunguNum = 1;

                    expandZuohoulungu.setHuaNoBtnPress(1);
                    huahenNoZuohoulungu.setVisibility(View.INVISIBLE);
                    huahenNoZuohoulunguNum = 0;
                    huahenZuohoulungu = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandZuohoulungu.setHuaYesBtnPress(1);
                    huahenYesZuohoulungu.setVisibility(View.INVISIBLE);
                    huahenYesZuohoulunguNum = 0;

                    expandZuohoulungu.setHuaNoBtnPress(1);
                    huahenNoZuohoulungu.setVisibility(View.INVISIBLE);
                    huahenNoZuohoulunguNum = 0;
                    huahenZuohoulungu = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "右前轮毂":
                if (huahenYesYouqianlunguNum == 0) {
                    expandYouqianlungu.setHuaYesBtnPress(0);
                    huahenYesYouqianlungu.setVisibility(View.VISIBLE);
                    huahenYesYouqianlunguNum = 1;

                    expandYouqianlungu.setHuaNoBtnPress(1);
                    huahenNoYouqianlungu.setVisibility(View.INVISIBLE);
                    huahenNoYouqianlunguNum = 0;
                    huahenYouqianlungu = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandYouqianlungu.setHuaYesBtnPress(1);
                    huahenYesYouqianlungu.setVisibility(View.INVISIBLE);
                    huahenYesYouqianlunguNum = 0;

                    expandYouqianlungu.setHuaNoBtnPress(1);
                    huahenNoYouqianlungu.setVisibility(View.INVISIBLE);
                    huahenNoYouqianlunguNum = 0;
                    huahenYouqianlungu = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "右后轮毂":
                if (huahenYesYouhoulunguNum == 0) {
                    expandYouhoulungu.setHuaYesBtnPress(0);
                    huahenYesYouhoulungu.setVisibility(View.VISIBLE);
                    huahenYesYouhoulunguNum = 1;

                    expandYouhoulungu.setHuaNoBtnPress(1);
                    huahenNoYouhoulungu.setVisibility(View.INVISIBLE);
                    huahenNoYouhoulunguNum = 0;
                    huahenYouhoulungu = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandYouhoulungu.setHuaYesBtnPress(1);
                    huahenYesYouhoulungu.setVisibility(View.INVISIBLE);
                    huahenYesYouhoulunguNum = 0;

                    expandYouhoulungu.setHuaNoBtnPress(1);
                    huahenNoYouhoulungu.setVisibility(View.INVISIBLE);
                    huahenNoYouhoulunguNum = 0;
                    huahenYouhoulungu = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "后杠":
                if (huahenYesHougangNum == 0) {
                    expandHougang.setHuaYesBtnPress(0);
                    huahenYesHougang.setVisibility(View.VISIBLE);
                    huahenYesHougangNum = 1;

                    expandHougang.setHuaNoBtnPress(1);
                    huahenNoHougang.setVisibility(View.INVISIBLE);
                    huahenNoHougangNum = 0;
                    huahenHougang = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandHougang.setHuaYesBtnPress(1);
                    huahenYesHougang.setVisibility(View.INVISIBLE);
                    huahenYesHougangNum = 0;
                    expandHougang.setHuaNoBtnPress(1);
                    huahenNoHougang.setVisibility(View.INVISIBLE);
                    huahenNoHougangNum = 0;
                    huahenHougang = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "右后叶子板":
                if (huahenYesYouhouyezibanNum == 0) {
                    expandYouhouyeziban.setHuaYesBtnPress(0);
                    huahenYesYouhouyeziban.setVisibility(View.VISIBLE);
                    huahenYesYouhouyezibanNum = 1;

                    expandYouhouyeziban.setHuaNoBtnPress(1);
                    huahenNoYouhouyeziban.setVisibility(View.INVISIBLE);
                    huahenNoYouhouyezibanNum = 0;
                    huahenYouhouyeziban = 3;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandYouhouyeziban.setHuaYesBtnPress(1);
                    huahenYesYouhouyeziban.setVisibility(View.INVISIBLE);
                    huahenYesYouhouyezibanNum = 0;

                    expandYouhouyeziban.setHuaNoBtnPress(1);
                    huahenNoYouhouyeziban.setVisibility(View.INVISIBLE);
                    huahenNoYouhouyezibanNum = 0;
                    huahenYouhouyeziban = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            default:
                break;

        }

    }

    @Override
    public void onClickHuaNo(String title) {
        switch (title) {
            case "前杠":
                if (huahenNoQiangangNum == 0) {
                    expandQiangang.setHuaNoBtnPress(0);
                    huahenNoQiangang.setVisibility(View.VISIBLE);
                    huahenNoQiangangNum = 1;

                    expandQiangang.setHuaYesBtnPress(1);
                    huahenYesQiangang.setVisibility(View.INVISIBLE);
                    huahenYesQiangangNum = 0;
                    huahenQiangang = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandQiangang.setHuaNoBtnPress(1);
                    huahenNoQiangang.setVisibility(View.INVISIBLE);
                    huahenNoQiangangNum = 0;

                    expandQiangang.setHuaYesBtnPress(1);
                    huahenYesQiangang.setVisibility(View.INVISIBLE);
                    huahenYesQiangangNum = 0;
                    huahenQiangang = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "左前叶子板":
                if (huahenNoZuoQianyeziNum == 0) {
                    expandZuoqianyezi.setHuaNoBtnPress(0);
                    huahenNoZuoQianyezi.setVisibility(View.VISIBLE);
                    huahenNoZuoQianyeziNum = 1;

                    expandZuoqianyezi.setHuaYesBtnPress(1);
                    huahenYesZuoQianyezi.setVisibility(View.INVISIBLE);
                    huahenYesZuoQianyeziNum = 0;
                    huahenZuoQianyezi = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandZuoqianyezi.setHuaNoBtnPress(1);
                    huahenNoZuoQianyezi.setVisibility(View.INVISIBLE);
                    huahenNoZuoQianyeziNum = 0;

                    expandZuoqianyezi.setHuaYesBtnPress(1);
                    huahenYesZuoQianyezi.setVisibility(View.INVISIBLE);
                    huahenYesZuoQianyeziNum = 0;
                    huahenZuoQianyezi = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "左前门":
                if (huahenNoZuoqianmenNum == 0) {
                    expandZuoqianmen.setHuaNoBtnPress(0);
                    huahenNoZuoqianmen.setVisibility(View.VISIBLE);
                    huahenNoZuoqianmenNum = 1;

                    expandZuoqianmen.setHuaYesBtnPress(1);
                    huahenYesZuoqianmen.setVisibility(View.INVISIBLE);
                    huahenYesZuoqianmenNum = 0;
                    huahenZuoqianmen = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandZuoqianmen.setHuaNoBtnPress(1);
                    huahenNoZuoqianmen.setVisibility(View.INVISIBLE);
                    huahenNoZuoqianmenNum = 0;

                    expandZuoqianmen.setHuaYesBtnPress(1);
                    huahenYesZuoqianmen.setVisibility(View.INVISIBLE);
                    huahenYesZuoqianmenNum = 0;
                    huahenZuoqianmen = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "左后门":
                if (huahenNoZuohoumenNum == 0) {
                    expandZuohoumen.setHuaNoBtnPress(0);
                    huahenNoZuohoumen.setVisibility(View.VISIBLE);
                    huahenNoZuohoumenNum = 1;

                    expandZuohoumen.setHuaYesBtnPress(1);
                    huahenYesZuohoumen.setVisibility(View.INVISIBLE);
                    huahenYesZuohoumenNum = 0;
                    huahenZuohoumen = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandZuohoumen.setHuaNoBtnPress(1);
                    huahenNoZuohoumen.setVisibility(View.INVISIBLE);
                    huahenNoZuohoumenNum = 0;

                    expandZuohoumen.setHuaYesBtnPress(1);
                    huahenYesZuohoumen.setVisibility(View.INVISIBLE);
                    huahenYesZuohoumenNum = 0;
                    huahenZuohoumen = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "左后叶子板":
                if (huahenNoZuohouyezibanNum == 0) {
                    expandZuohouyeziban.setHuaNoBtnPress(0);
                    huahenNoZuohouyeziban.setVisibility(View.VISIBLE);
                    huahenNoZuohouyezibanNum = 1;

                    expandZuohoumen.setHuaYesBtnPress(1);
                    huahenYesZuohoumen.setVisibility(View.INVISIBLE);
                    huahenYesZuohoumenNum = 0;
                    huahenZuohoumen = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandZuohouyeziban.setHuaNoBtnPress(1);
                    huahenNoZuohouyeziban.setVisibility(View.INVISIBLE);
                    huahenNoZuohouyezibanNum = 0;

                    expandZuohoumen.setHuaYesBtnPress(1);
                    huahenYesZuohoumen.setVisibility(View.INVISIBLE);
                    huahenYesZuohoumenNum = 0;
                    huahenZuohoumen = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "机盖":
                if (huahenNoJigaiNum == 0) {
                    expandJigai.setHuaNoBtnPress(0);
                    huahenNoJigai.setVisibility(View.VISIBLE);
                    huahenNoJigaiNum = 1;

                    expandJigai.setHuaYesBtnPress(1);
                    huahenYesJigai.setVisibility(View.INVISIBLE);
                    huahenYesJigaiNum = 0;
                    huahenJigai = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandJigai.setHuaNoBtnPress(1);
                    huahenNoJigai.setVisibility(View.INVISIBLE);
                    huahenNoJigaiNum = 0;

                    expandJigai.setHuaYesBtnPress(1);
                    huahenYesJigai.setVisibility(View.INVISIBLE);
                    huahenYesJigaiNum = 0;
                    huahenJigai = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "左反光镜":
                if (huahenNoZuofanguangjingNum == 0) {
                    expandZuofanguangjing.setHuaNoBtnPress(0);
                    huahenNoZuofanguangjing.setVisibility(View.VISIBLE);
                    huahenNoZuofanguangjingNum = 1;

                    expandZuofanguangjing.setHuaYesBtnPress(1);
                    huahenYesZuofanguangjing.setVisibility(View.INVISIBLE);
                    huahenYesZuofanguangjingNum = 0;
                    huahenZuofanguangjing = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandZuofanguangjing.setHuaNoBtnPress(1);
                    huahenNoZuohouyeziban.setVisibility(View.INVISIBLE);
                    huahenNoZuofanguangjingNum = 0;

                    expandZuofanguangjing.setHuaYesBtnPress(1);
                    huahenYesZuofanguangjing.setVisibility(View.INVISIBLE);
                    huahenYesZuofanguangjingNum = 0;
                    huahenZuofanguangjing = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "右后门":
                if (huahenNoYouhoumenNum == 0) {
                    expandYouhoumen.setHuaNoBtnPress(0);
                    huahenNoYouhoumen.setVisibility(View.VISIBLE);
                    huahenNoYouhoumenNum = 1;

                    expandYouhoumen.setHuaYesBtnPress(1);
                    huahenYesYouhoumen.setVisibility(View.INVISIBLE);
                    huahenYesYouhoumenNum = 0;
                    huahenYouhoumen = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandYouhoumen.setHuaNoBtnPress(1);
                    huahenNoYouhoumen.setVisibility(View.INVISIBLE);
                    huahenNoYouhoumenNum = 0;

                    expandYouhoumen.setHuaYesBtnPress(1);
                    huahenYesYouhoumen.setVisibility(View.INVISIBLE);
                    huahenYesYouhoumenNum = 0;
                    huahenYouhoumen = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "右前门":
                if (huahenNoYouqianmenNum == 0) {
                    expandYouqianmen.setHuaNoBtnPress(0);
                    huahenNoYouqianmen.setVisibility(View.VISIBLE);
                    huahenNoYouqianmenNum = 1;

                    expandYouqianmen.setHuaYesBtnPress(1);
                    huahenYesYouqianmen.setVisibility(View.INVISIBLE);
                    huahenYesYouqianmenNum = 0;
                    huahenYouqianmen = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandYouqianmen.setHuaNoBtnPress(1);
                    huahenNoYouqianmen.setVisibility(View.INVISIBLE);
                    huahenNoYouqianmenNum = 0;

                    expandYouqianmen.setHuaYesBtnPress(1);
                    huahenYesYouqianmen.setVisibility(View.INVISIBLE);
                    huahenYesYouqianmenNum = 0;
                    huahenYouqianmen = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "右前叶子板":
                if (huahenNoYouqianyezibanNum == 0) {
                    expandYouqianyeziban.setHuaNoBtnPress(0);
                    huahenNoYouqianyeziban.setVisibility(View.VISIBLE);
                    huahenNoYouqianyezibanNum = 1;

                    expandYouqianyeziban.setHuaYesBtnPress(1);
                    huahenYesYouqianyeziban.setVisibility(View.INVISIBLE);
                    huahenYesYouqianyezibanNum = 0;
                    huahenYouqianyeziban = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandYouqianyeziban.setHuaNoBtnPress(1);
                    huahenNoYouqianyeziban.setVisibility(View.INVISIBLE);
                    huahenNoYouqianyezibanNum = 0;
                    expandYouqianyeziban.setHuaYesBtnPress(1);
                    huahenYesYouqianyeziban.setVisibility(View.INVISIBLE);
                    huahenYesYouqianyezibanNum = 0;
                    huahenYouqianyeziban = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "后盖":
                if (huahenNoHougaiNum == 0) {
                    expandHougai.setHuaNoBtnPress(0);
                    huahenNoHougai.setVisibility(View.VISIBLE);
                    huahenNoHougaiNum = 1;

                    expandHougai.setHuaYesBtnPress(1);
                    huahenYesHougai.setVisibility(View.INVISIBLE);
                    huahenYesHougaiNum = 0;
                    huahenHougai = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandHougai.setHuaNoBtnPress(1);
                    huahenNoHougai.setVisibility(View.INVISIBLE);
                    huahenNoHougaiNum = 0;

                    expandHougai.setHuaYesBtnPress(1);
                    huahenYesHougai.setVisibility(View.INVISIBLE);
                    huahenYesHougaiNum = 0;
                    huahenHougai = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "左大边":
                if (huahenNoZuodabianNum == 0) {
                    expandZuodabian.setHuaNoBtnPress(0);
                    huahenNoZuodabian.setVisibility(View.VISIBLE);
                    huahenNoZuodabianNum = 1;

                    expandZuodabian.setHuaYesBtnPress(1);
                    huahenYesZuodabian.setVisibility(View.INVISIBLE);
                    huahenYesZuodabianNum = 0;
                    huahenZuodabian = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandZuodabian.setHuaNoBtnPress(1);
                    huahenNoZuodabian.setVisibility(View.INVISIBLE);
                    huahenNoZuodabianNum = 0;

                    expandZuodabian.setHuaYesBtnPress(1);
                    huahenYesZuodabian.setVisibility(View.INVISIBLE);
                    huahenYesZuodabianNum = 0;
                    huahenZuodabian = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "右大边":
                if (huahenNoYoudabianNum == 0) {
                    expandYoudabian.setHuaNoBtnPress(0);
                    huahenNoYoudabian.setVisibility(View.VISIBLE);
                    huahenNoYoudabianNum = 1;

                    expandYoudabian.setHuaYesBtnPress(1);
                    huahenYesYoudabian.setVisibility(View.INVISIBLE);
                    huahenYesYoudabianNum = 0;
                    huahenYoudabian = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandYoudabian.setHuaNoBtnPress(1);
                    huahenNoYoudabian.setVisibility(View.INVISIBLE);
                    huahenNoYoudabianNum = 0;

                    expandYoudabian.setHuaYesBtnPress(1);
                    huahenYesYoudabian.setVisibility(View.INVISIBLE);
                    huahenYesYoudabianNum = 0;
                    huahenYoudabian = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "右反光镜":
                if (huahenNoYoufanguangjingNum == 0) {
                    expandYoufanguangjing.setHuaNoBtnPress(0);
                    huahenNoYoufanguangjing.setVisibility(View.VISIBLE);
                    huahenNoYoufanguangjingNum = 1;

                    expandYoufanguangjing.setHuaYesBtnPress(1);
                    huahenYesYoufanguangjing.setVisibility(View.INVISIBLE);
                    huahenYesYoufanguangjingNum = 0;
                    huahenYoufanguangjing = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandYoufanguangjing.setHuaNoBtnPress(1);
                    huahenNoYoufanguangjing.setVisibility(View.INVISIBLE);
                    huahenNoYoufanguangjingNum = 0;

                    expandYoufanguangjing.setHuaYesBtnPress(1);
                    huahenYesYoufanguangjing.setVisibility(View.INVISIBLE);
                    huahenYesYoufanguangjingNum = 0;
                    huahenYoufanguangjing = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "左前轮毂":
                if (huahenNoZuoqianlunguNum == 0) {
                    expandZuoqianlungu.setHuaNoBtnPress(0);
                    huahenNoZuoqianlungu.setVisibility(View.VISIBLE);
                    huahenNoZuoqianlunguNum = 1;

                    expandZuoqianlungu.setHuaYesBtnPress(1);
                    huahenYesZuoqianlungu.setVisibility(View.INVISIBLE);
                    huahenYesZuoqianlunguNum = 0;
                    huahenZuoqianlungu = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandZuoqianlungu.setHuaNoBtnPress(1);
                    huahenNoZuoqianlungu.setVisibility(View.INVISIBLE);
                    huahenNoZuoqianlunguNum = 0;

                    expandZuoqianlungu.setHuaYesBtnPress(1);
                    huahenYesZuoqianlungu.setVisibility(View.INVISIBLE);
                    huahenYesZuoqianlunguNum = 0;
                    huahenZuoqianlungu = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "左后轮毂":
                if (huahenNoZuohoulunguNum == 0) {
                    expandZuohoulungu.setHuaNoBtnPress(0);
                    huahenNoZuohoulungu.setVisibility(View.VISIBLE);
                    huahenNoZuohoulunguNum = 1;

                    expandZuohoulungu.setHuaYesBtnPress(1);
                    huahenYesZuohoulungu.setVisibility(View.INVISIBLE);
                    huahenYesZuohoulunguNum = 0;
                    huahenZuohoulungu = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandZuohoulungu.setHuaNoBtnPress(1);
                    huahenNoZuohoulungu.setVisibility(View.INVISIBLE);
                    huahenNoZuohoulunguNum = 0;

                    expandZuohoulungu.setHuaYesBtnPress(1);
                    huahenYesZuohoulungu.setVisibility(View.INVISIBLE);
                    huahenYesZuohoulunguNum = 0;
                    huahenZuohoulungu = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "右前轮毂":
                if (huahenNoYouqianlunguNum == 0) {
                    expandYouqianlungu.setHuaNoBtnPress(0);
                    huahenNoYouqianlungu.setVisibility(View.VISIBLE);
                    huahenNoYouqianlunguNum = 1;

                    expandYouqianlungu.setHuaYesBtnPress(1);
                    huahenYesYouqianlungu.setVisibility(View.INVISIBLE);
                    huahenYesYouqianlunguNum = 0;
                    huahenYouqianlungu = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandYouqianlungu.setHuaNoBtnPress(1);
                    huahenNoYouqianlungu.setVisibility(View.INVISIBLE);
                    huahenNoYouqianlunguNum = 0;

                    expandYouqianlungu.setHuaYesBtnPress(1);
                    huahenYesYouqianlungu.setVisibility(View.INVISIBLE);
                    huahenYesYouqianlunguNum = 0;
                    huahenYouqianlungu = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "右后轮毂":
                if (huahenNoYouhoulunguNum == 0) {
                    expandYouhoulungu.setHuaNoBtnPress(0);
                    huahenNoYouhoulungu.setVisibility(View.VISIBLE);
                    huahenNoYouhoulunguNum = 1;

                    expandYouhoulungu.setHuaYesBtnPress(1);
                    huahenYesYouhoulungu.setVisibility(View.INVISIBLE);
                    huahenYesYouhoulunguNum = 0;
                    huahenYouhoulungu = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandYouhoulungu.setHuaNoBtnPress(1);
                    huahenNoYouhoulungu.setVisibility(View.INVISIBLE);
                    huahenNoYouhoulunguNum = 0;

                    expandYouhoulungu.setHuaYesBtnPress(1);
                    huahenYesYouhoulungu.setVisibility(View.INVISIBLE);
                    huahenYesYouhoulunguNum = 0;
                    huahenYouhoulungu = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "后杠":
                if (huahenNoHougangNum == 0) {
                    expandHougang.setHuaNoBtnPress(0);
                    huahenNoHougang.setVisibility(View.VISIBLE);
                    huahenNoHougangNum = 1;

                    expandHougang.setHuaYesBtnPress(1);
                    huahenYesHougang.setVisibility(View.INVISIBLE);
                    huahenYesHougangNum = 0;
                    huahenHougang = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandHougang.setHuaNoBtnPress(1);
                    huahenNoHougang.setVisibility(View.INVISIBLE);
                    huahenNoHougangNum = 0;

                    expandHougang.setHuaYesBtnPress(1);
                    huahenYesHougang.setVisibility(View.INVISIBLE);
                    huahenYesHougangNum = 0;
                    huahenHougang = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            case "右后叶子板":
                if (huahenNoYouhouyezibanNum == 0) {
                    expandYouhouyeziban.setHuaNoBtnPress(0);
                    huahenNoYouhouyeziban.setVisibility(View.VISIBLE);
                    huahenNoYouhouyezibanNum = 1;

                    expandYouhouyeziban.setHuaYesBtnPress(1);
                    huahenYesYouhouyeziban.setVisibility(View.INVISIBLE);
                    huahenYesYouhouyezibanNum = 0;
                    huahenYouhouyeziban = 2;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                } else {
                    expandYouhouyeziban.setHuaNoBtnPress(1);
                    huahenNoYouhouyeziban.setVisibility(View.INVISIBLE);
                    huahenNoYouhouyezibanNum = 0;

                    expandYouhouyeziban.setHuaYesBtnPress(1);
                    huahenYesYouhouyeziban.setVisibility(View.INVISIBLE);
                    huahenYesYouhouyezibanNum = 0;
                    huahenYouhouyeziban = 1;
                    huahenNumBtn.setText("划痕:" + getHuahenNum());
                }
                break;
            default:
                break;

        }

    }

    @Override
    public void onClickBanYes(String title) {
        switch (title) {
            case "前杠":
                if (banjinYesQiangangNum == 0) {
                    expandQiangang.setBanYesBtnPress(0);
                    banjinYesQiangang.setVisibility(View.VISIBLE);
                    banjinYesQiangangNum = 1;

                    expandQiangang.setBanNoBtnPress(1);
                    banjinNoQiangang.setVisibility(View.INVISIBLE);
                    banjinNoQiangangNum = 0;
                    banjinQiangang = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandQiangang.setBanYesBtnPress(1);
                    banjinYesQiangang.setVisibility(View.INVISIBLE);
                    banjinYesQiangangNum = 0;

                    expandQiangang.setBanNoBtnPress(1);
                    banjinNoQiangang.setVisibility(View.INVISIBLE);
                    banjinNoQiangangNum = 0;
                    banjinQiangang = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "左前叶子板":
                if (banjinYesZuoQianyeziNum == 0) {
                    expandZuoqianyezi.setBanYesBtnPress(0);
                    banjinYesZuoQianyezi.setVisibility(View.VISIBLE);
                    banjinYesZuoQianyeziNum = 1;

                    expandZuoqianyezi.setBanNoBtnPress(1);
                    banjinNoZuoQianyezi.setVisibility(View.INVISIBLE);
                    banjinNoZuoQianyeziNum = 0;
                    banjinZuoQianyezi = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandZuoqianyezi.setBanYesBtnPress(1);
                    banjinYesZuoQianyezi.setVisibility(View.INVISIBLE);
                    banjinYesZuoQianyeziNum = 0;

                    expandZuoqianyezi.setBanNoBtnPress(1);
                    banjinNoZuoQianyezi.setVisibility(View.INVISIBLE);
                    banjinNoZuoQianyeziNum = 0;
                    banjinZuoQianyezi = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "左前门":
                if (banjinYesZuoqianmenNum == 0) {
                    expandZuoqianmen.setBanYesBtnPress(0);
                    banjinYesZuoqianmen.setVisibility(View.VISIBLE);
                    banjinYesZuoqianmenNum = 1;

                    expandZuoqianmen.setBanNoBtnPress(1);
                    banjinNoZuoqianmen.setVisibility(View.INVISIBLE);
                    banjinNoZuoqianmenNum = 0;
                    banjinZuoqianmen = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandZuoqianmen.setBanYesBtnPress(1);
                    banjinYesZuoqianmen.setVisibility(View.INVISIBLE);
                    banjinYesZuoqianmenNum = 0;

                    expandZuoqianmen.setBanNoBtnPress(1);
                    banjinNoZuoqianmen.setVisibility(View.INVISIBLE);
                    banjinNoZuoqianmenNum = 0;
                    banjinZuoqianmen = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "左后门":
                if (banjinYesZuohoumenNum == 0) {
                    expandZuohoumen.setBanYesBtnPress(0);
                    banjinYesZuohoumen.setVisibility(View.VISIBLE);
                    banjinYesZuohoumenNum = 1;

                    expandZuohoumen.setBanNoBtnPress(1);
                    banjinNoZuohoumen.setVisibility(View.INVISIBLE);
                    banjinNoZuohoumenNum = 0;
                    banjinZuohoumen = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandZuohoumen.setBanYesBtnPress(1);
                    banjinYesZuohoumen.setVisibility(View.INVISIBLE);
                    banjinYesZuohoumenNum = 0;

                    expandZuohoumen.setBanNoBtnPress(1);
                    banjinNoZuohoumen.setVisibility(View.INVISIBLE);
                    banjinNoZuohoumenNum = 0;
                    banjinZuohoumen = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "左后叶子板":
                if (banjinYesZuohouyezibanNum == 0) {
                    expandZuohouyeziban.setBanYesBtnPress(0);
                    banjinYesZuohouyeziban.setVisibility(View.VISIBLE);
                    banjinYesZuohouyezibanNum = 1;

                    expandZuohouyeziban.setBanNoBtnPress(1);
                    banjinNoZuohouyeziban.setVisibility(View.INVISIBLE);
                    banjinNoZuohouyezibanNum = 0;
                    banjinZuohouyeziban = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandZuohouyeziban.setBanYesBtnPress(1);
                    banjinYesZuohouyeziban.setVisibility(View.INVISIBLE);
                    banjinYesZuohouyezibanNum = 0;

                    expandZuohouyeziban.setBanNoBtnPress(1);
                    banjinNoZuohouyeziban.setVisibility(View.INVISIBLE);
                    banjinNoZuohouyezibanNum = 0;
                    banjinZuohouyeziban = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "机盖":
                if (banjinYesJigaiNum == 0) {
                    expandJigai.setBanYesBtnPress(0);
                    banjinYesJigai.setVisibility(View.VISIBLE);
                    banjinYesJigaiNum = 1;

                    expandJigai.setBanNoBtnPress(1);
                    banjinNoJigai.setVisibility(View.INVISIBLE);
                    banjinNoJigaiNum = 0;
                    banjinJigai = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandJigai.setBanYesBtnPress(1);
                    banjinYesJigai.setVisibility(View.INVISIBLE);
                    banjinYesJigaiNum = 0;

                    expandJigai.setBanNoBtnPress(1);
                    banjinNoJigai.setVisibility(View.INVISIBLE);
                    banjinNoJigaiNum = 0;
                    banjinJigai = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "左反光镜":
                if (banjinYesZuofanguangjingNum == 0) {
                    expandZuofanguangjing.setBanYesBtnPress(0);
                    banjinYesZuofanguangjing.setVisibility(View.VISIBLE);
                    banjinYesZuofanguangjingNum = 1;

                    expandZuofanguangjing.setBanNoBtnPress(1);
                    banjinNoZuofanguangjing.setVisibility(View.INVISIBLE);
                    banjinNoZuofanguangjingNum = 0;
                    banjinZuofanguangjing = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandZuofanguangjing.setBanYesBtnPress(1);
                    banjinYesZuohouyeziban.setVisibility(View.INVISIBLE);
                    banjinYesZuofanguangjingNum = 0;

                    expandZuofanguangjing.setBanNoBtnPress(1);
                    banjinNoZuofanguangjing.setVisibility(View.INVISIBLE);
                    banjinNoZuofanguangjingNum = 0;
                    banjinZuofanguangjing = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "右后门":
                if (banjinYesYouhoumenNum == 0) {
                    expandYouhoumen.setBanYesBtnPress(0);
                    banjinYesYouhoumen.setVisibility(View.VISIBLE);
                    banjinYesYouhoumenNum = 1;

                    expandYouhoumen.setBanNoBtnPress(1);
                    banjinNoYouhoumen.setVisibility(View.INVISIBLE);
                    banjinNoYouhoumenNum = 0;
                    banjinYouhoumen = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandYouhoumen.setBanYesBtnPress(1);
                    banjinYesYouhoumen.setVisibility(View.INVISIBLE);
                    banjinYesYouhoumenNum = 0;
                    expandYouhoumen.setBanNoBtnPress(1);
                    banjinNoYouhoumen.setVisibility(View.INVISIBLE);
                    banjinNoYouhoumenNum = 0;
                    banjinYouhoumen = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "右前门":
                if (banjinYesYouqianmenNum == 0) {
                    expandYouqianmen.setBanYesBtnPress(0);
                    banjinYesYouqianmen.setVisibility(View.VISIBLE);
                    banjinYesYouqianmenNum = 1;

                    expandYouqianmen.setBanNoBtnPress(1);
                    banjinNoYouqianmen.setVisibility(View.INVISIBLE);
                    banjinNoYouqianmenNum = 0;
                    banjinYouqianmen = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandYouqianmen.setBanYesBtnPress(1);
                    banjinYesYouqianmen.setVisibility(View.INVISIBLE);
                    banjinYesYouqianmenNum = 0;

                    expandYouqianmen.setBanNoBtnPress(1);
                    banjinNoYouqianmen.setVisibility(View.INVISIBLE);
                    banjinNoYouqianmenNum = 0;
                    banjinYouqianmen = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "右前叶子板":
                if (banjinYesYouqianyezibanNum == 0) {
                    expandYouqianyeziban.setBanYesBtnPress(0);
                    banjinYesYouqianyeziban.setVisibility(View.VISIBLE);
                    banjinYesYouqianyezibanNum = 1;

                    expandYouqianyeziban.setBanNoBtnPress(1);
                    banjinNoYouqianyeziban.setVisibility(View.INVISIBLE);
                    banjinNoYouqianyezibanNum = 0;
                    banjinYouqianyeziban = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandYouqianyeziban.setBanYesBtnPress(1);
                    banjinYesYouqianyeziban.setVisibility(View.INVISIBLE);
                    banjinYesYouqianyezibanNum = 0;

                    expandYouqianyeziban.setBanNoBtnPress(1);
                    banjinNoYouqianyeziban.setVisibility(View.INVISIBLE);
                    banjinNoYouqianyezibanNum = 0;
                    banjinYouqianyeziban = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "后盖":
                if (banjinYesHougaiNum == 0) {
                    expandHougai.setBanYesBtnPress(0);
                    banjinYesHougai.setVisibility(View.VISIBLE);
                    banjinYesHougaiNum = 1;

                    expandHougai.setBanNoBtnPress(1);
                    banjinNoHougai.setVisibility(View.INVISIBLE);
                    banjinNoHougaiNum = 0;
                    banjinHougai = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandHougai.setBanYesBtnPress(1);
                    banjinYesHougai.setVisibility(View.INVISIBLE);
                    banjinYesHougaiNum = 0;
                    expandHougai.setBanNoBtnPress(1);
                    banjinNoHougai.setVisibility(View.INVISIBLE);
                    banjinNoHougaiNum = 0;
                    banjinHougai = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "左大边":
                if (banjinYesZuodabianNum == 0) {
                    expandZuodabian.setBanYesBtnPress(0);
                    banjinYesZuodabian.setVisibility(View.VISIBLE);
                    banjinYesZuodabianNum = 1;

                    expandZuodabian.setBanNoBtnPress(1);
                    banjinNoZuodabian.setVisibility(View.INVISIBLE);
                    banjinNoZuodabianNum = 0;
                    banjinZuodabian = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandZuodabian.setBanYesBtnPress(1);
                    banjinYesZuodabian.setVisibility(View.INVISIBLE);
                    banjinYesZuodabianNum = 0;

                    expandZuodabian.setBanNoBtnPress(1);
                    banjinNoZuodabian.setVisibility(View.INVISIBLE);
                    banjinNoZuodabianNum = 0;
                    banjinZuodabian = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "右大边":
                if (banjinYesYoudabianNum == 0) {
                    expandYoudabian.setBanYesBtnPress(0);
                    banjinYesYoudabian.setVisibility(View.VISIBLE);
                    banjinYesYoudabianNum = 1;

                    expandYoudabian.setBanNoBtnPress(1);
                    banjinNoYoudabian.setVisibility(View.INVISIBLE);
                    banjinNoYoudabianNum = 0;
                    banjinYoudabian = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandYoudabian.setBanYesBtnPress(1);
                    banjinYesYoudabian.setVisibility(View.INVISIBLE);
                    banjinYesYoudabianNum = 0;

                    expandYoudabian.setBanNoBtnPress(1);
                    banjinNoYoudabian.setVisibility(View.INVISIBLE);
                    banjinNoYoudabianNum = 0;
                    banjinYoudabian = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "右反光镜":
                if (banjinYesYoufanguangjingNum == 0) {
                    expandYoufanguangjing.setBanYesBtnPress(0);
                    banjinYesYoufanguangjing.setVisibility(View.VISIBLE);
                    banjinYesYoufanguangjingNum = 1;

                    expandYoufanguangjing.setBanNoBtnPress(1);
                    banjinNoYoufanguangjing.setVisibility(View.INVISIBLE);
                    banjinNoYoufanguangjingNum = 0;
                    banjinYoufanguangjing = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandYoufanguangjing.setBanYesBtnPress(1);
                    banjinYesYoufanguangjing.setVisibility(View.INVISIBLE);
                    banjinYesYoufanguangjingNum = 0;

                    expandYoufanguangjing.setBanNoBtnPress(1);
                    banjinNoYoufanguangjing.setVisibility(View.INVISIBLE);
                    banjinNoYoufanguangjingNum = 0;
                    banjinYoufanguangjing = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "左前轮毂":
                if (banjinYesZuoqianlunguNum == 0) {
                    expandZuoqianlungu.setBanYesBtnPress(0);
                    banjinYesZuoqianlungu.setVisibility(View.VISIBLE);
                    banjinYesZuoqianlunguNum = 1;

                    expandZuoqianlungu.setBanNoBtnPress(1);
                    banjinNoZuoqianlungu.setVisibility(View.INVISIBLE);
                    banjinNoZuoqianlunguNum = 0;
                    banjinZuoqianlungu = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandZuoqianlungu.setBanYesBtnPress(1);
                    banjinYesZuoqianlungu.setVisibility(View.INVISIBLE);
                    banjinYesZuoqianlunguNum = 0;

                    expandZuoqianlungu.setBanNoBtnPress(1);
                    banjinNoZuoqianlungu.setVisibility(View.INVISIBLE);
                    banjinNoZuoqianlunguNum = 0;
                    banjinZuoqianlungu = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "左后轮毂":
                if (banjinYesZuohoulunguNum == 0) {
                    expandZuohoulungu.setBanYesBtnPress(0);
                    banjinYesZuohoulungu.setVisibility(View.VISIBLE);
                    banjinYesZuohoulunguNum = 1;

                    expandZuohoulungu.setBanNoBtnPress(1);
                    banjinNoZuohoulungu.setVisibility(View.INVISIBLE);
                    banjinNoZuohoulunguNum = 0;
                    banjinZuohoulungu = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandZuohoulungu.setBanYesBtnPress(1);
                    banjinYesZuohoulungu.setVisibility(View.INVISIBLE);
                    banjinYesZuohoulunguNum = 0;

                    expandZuohoulungu.setBanNoBtnPress(1);
                    banjinNoZuohoulungu.setVisibility(View.INVISIBLE);
                    banjinNoZuohoulunguNum = 0;
                    banjinZuohoulungu = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "右前轮毂":
                if (banjinYesYouqianlunguNum == 0) {
                    expandYouqianlungu.setBanYesBtnPress(0);
                    banjinYesYouqianlungu.setVisibility(View.VISIBLE);
                    banjinYesYouqianlunguNum = 1;

                    expandYouqianlungu.setBanNoBtnPress(1);
                    banjinNoYouqianlungu.setVisibility(View.INVISIBLE);
                    banjinNoYouqianlunguNum = 0;
                    banjinYouqianlungu = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandYouqianlungu.setBanYesBtnPress(1);
                    banjinYesYouqianlungu.setVisibility(View.INVISIBLE);
                    banjinYesYouqianlunguNum = 0;
                    expandYouqianlungu.setBanNoBtnPress(1);
                    banjinNoYouqianlungu.setVisibility(View.INVISIBLE);
                    banjinNoYouqianlunguNum = 0;
                    banjinYouqianlungu = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "右后轮毂":
                if (banjinYesYouhoulunguNum == 0) {
                    expandYouhoulungu.setBanYesBtnPress(0);
                    banjinYesYouhoulungu.setVisibility(View.VISIBLE);
                    banjinYesYouhoulunguNum = 1;

                    expandYouhoulungu.setBanNoBtnPress(1);
                    banjinNoYouhoulungu.setVisibility(View.INVISIBLE);
                    banjinNoYouhoulunguNum = 0;
                    banjinYouhoulungu = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandYouhoulungu.setBanYesBtnPress(1);
                    banjinYesYouhoulungu.setVisibility(View.INVISIBLE);
                    banjinYesYouhoulunguNum = 0;

                    expandYouhoulungu.setBanNoBtnPress(1);
                    banjinNoYouhoulungu.setVisibility(View.INVISIBLE);
                    banjinNoYouhoulunguNum = 0;
                    banjinYouhoulungu = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "后杠":
                if (banjinYesHougangNum == 0) {
                    expandHougang.setBanYesBtnPress(0);
                    banjinYesHougang.setVisibility(View.VISIBLE);
                    banjinYesHougangNum = 1;

                    expandHougang.setBanNoBtnPress(1);
                    banjinNoHougang.setVisibility(View.INVISIBLE);
                    banjinNoHougangNum = 0;
                    banjinHougang = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandHougang.setBanYesBtnPress(1);
                    banjinYesHougang.setVisibility(View.INVISIBLE);
                    banjinYesHougangNum = 0;

                    expandHougang.setBanNoBtnPress(1);
                    banjinNoHougang.setVisibility(View.INVISIBLE);
                    banjinNoHougangNum = 0;
                    banjinHougang = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "右后叶子板":
                if (banjinYesYouhouyezibanNum == 0) {
                    expandYouhouyeziban.setBanYesBtnPress(0);
                    banjinYesYouhouyeziban.setVisibility(View.VISIBLE);
                    banjinYesYouhouyezibanNum = 1;

                    expandYouhouyeziban.setBanNoBtnPress(1);
                    banjinNoYouhouyeziban.setVisibility(View.INVISIBLE);
                    banjinNoYouhouyezibanNum = 0;
                    banjinYouhouyeziban = 3;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandYouhouyeziban.setBanYesBtnPress(1);
                    banjinYesYouhouyeziban.setVisibility(View.INVISIBLE);
                    banjinYesYouhouyezibanNum = 0;

                    expandYouhouyeziban.setBanNoBtnPress(1);
                    banjinNoYouhouyeziban.setVisibility(View.INVISIBLE);
                    banjinNoYouhouyezibanNum = 0;
                    banjinYouhouyeziban = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            default:
                break;

        }

    }

    @Override
    public void onClickBanNo(String title) {
        switch (title) {
            case "前杠":
                if (banjinNoQiangangNum == 0) {
                    expandQiangang.setBanNoBtnPress(0);
                    banjinNoQiangang.setVisibility(View.VISIBLE);
                    banjinNoQiangangNum = 1;

                    expandQiangang.setBanYesBtnPress(1);
                    banjinYesQiangang.setVisibility(View.INVISIBLE);
                    banjinYesQiangangNum = 0;
                    banjinQiangang = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandQiangang.setBanNoBtnPress(1);
                    banjinNoQiangang.setVisibility(View.INVISIBLE);
                    banjinNoQiangangNum = 0;

                    expandQiangang.setBanYesBtnPress(1);
                    banjinYesQiangang.setVisibility(View.INVISIBLE);
                    banjinYesQiangangNum = 0;
                    banjinQiangang = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "左前叶子板":
                if (banjinNoZuoQianyeziNum == 0) {
                    expandZuoqianyezi.setBanNoBtnPress(0);
                    banjinNoZuoQianyezi.setVisibility(View.VISIBLE);
                    banjinNoZuoQianyeziNum = 1;

                    expandZuoqianyezi.setBanYesBtnPress(1);
                    banjinYesZuoQianyezi.setVisibility(View.INVISIBLE);
                    banjinYesZuoQianyeziNum = 0;
                    banjinZuoQianyezi = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandZuoqianyezi.setBanNoBtnPress(1);
                    banjinNoZuoQianyezi.setVisibility(View.INVISIBLE);
                    banjinNoZuoQianyeziNum = 0;

                    expandZuoqianyezi.setBanYesBtnPress(1);
                    banjinYesZuoQianyezi.setVisibility(View.INVISIBLE);
                    banjinYesZuoQianyeziNum = 0;
                    banjinZuoQianyezi = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "左前门":
                if (banjinNoZuoqianmenNum == 0) {
                    expandZuoqianmen.setBanNoBtnPress(0);
                    banjinNoZuoqianmen.setVisibility(View.VISIBLE);
                    banjinNoZuoqianmenNum = 1;

                    expandZuoqianmen.setBanYesBtnPress(1);
                    banjinYesZuoqianmen.setVisibility(View.INVISIBLE);
                    banjinYesZuoqianmenNum = 0;
                    banjinZuoqianmen = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandZuoqianmen.setBanNoBtnPress(1);
                    banjinNoZuoqianmen.setVisibility(View.INVISIBLE);
                    banjinNoZuoqianmenNum = 0;

                    expandZuoqianmen.setBanYesBtnPress(1);
                    banjinYesZuoqianmen.setVisibility(View.INVISIBLE);
                    banjinYesZuoqianmenNum = 0;
                    banjinZuoqianmen = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "左后门":
                if (banjinNoZuohoumenNum == 0) {
                    expandZuohoumen.setBanNoBtnPress(0);
                    banjinNoZuohoumen.setVisibility(View.VISIBLE);
                    banjinNoZuohoumenNum = 1;

                    expandZuohoumen.setBanYesBtnPress(1);
                    banjinYesZuohoumen.setVisibility(View.INVISIBLE);
                    banjinYesZuohoumenNum = 0;
                    banjinZuohoumen = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandZuohoumen.setBanNoBtnPress(1);
                    banjinNoZuohoumen.setVisibility(View.INVISIBLE);
                    banjinNoZuohoumenNum = 0;

                    expandZuohoumen.setBanYesBtnPress(1);
                    banjinYesZuohoumen.setVisibility(View.INVISIBLE);
                    banjinYesZuohoumenNum = 0;
                    banjinZuohoumen = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "左后叶子板":
                if (banjinNoZuohouyezibanNum == 0) {
                    expandZuohouyeziban.setBanNoBtnPress(0);
                    banjinNoZuohouyeziban.setVisibility(View.VISIBLE);
                    banjinNoZuohouyezibanNum = 1;

                    expandZuohouyeziban.setBanYesBtnPress(1);
                    banjinYesZuohouyeziban.setVisibility(View.INVISIBLE);
                    banjinYesZuohouyezibanNum = 0;
                    banjinZuohouyeziban = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandZuohouyeziban.setBanNoBtnPress(1);
                    banjinNoZuohouyeziban.setVisibility(View.INVISIBLE);
                    banjinNoZuohouyezibanNum = 0;

                    expandZuohouyeziban.setBanYesBtnPress(1);
                    banjinYesZuohouyeziban.setVisibility(View.INVISIBLE);
                    banjinYesZuohouyezibanNum = 0;
                    banjinZuohouyeziban = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "机盖":
                if (banjinNoJigaiNum == 0) {
                    expandJigai.setBanNoBtnPress(0);
                    banjinNoJigai.setVisibility(View.VISIBLE);
                    banjinNoJigaiNum = 1;

                    expandJigai.setBanYesBtnPress(1);
                    banjinYesJigai.setVisibility(View.INVISIBLE);
                    banjinYesJigaiNum = 0;
                    banjinJigai = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandJigai.setBanNoBtnPress(1);
                    banjinNoJigai.setVisibility(View.INVISIBLE);
                    banjinNoJigaiNum = 0;

                    expandJigai.setBanYesBtnPress(1);
                    banjinYesJigai.setVisibility(View.INVISIBLE);
                    banjinYesJigaiNum = 0;
                    banjinJigai = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "左反光镜":
                if (banjinNoZuofanguangjingNum == 0) {
                    expandZuofanguangjing.setBanNoBtnPress(0);
                    banjinNoZuofanguangjing.setVisibility(View.VISIBLE);
                    banjinNoZuofanguangjingNum = 1;

                    expandZuofanguangjing.setBanYesBtnPress(1);
                    banjinYesZuofanguangjing.setVisibility(View.INVISIBLE);
                    banjinYesZuofanguangjingNum = 0;
                    banjinZuofanguangjing = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandZuofanguangjing.setBanNoBtnPress(1);
                    banjinNoZuohouyeziban.setVisibility(View.INVISIBLE);
                    banjinNoZuofanguangjingNum = 0;

                    expandZuofanguangjing.setBanYesBtnPress(1);
                    banjinYesZuofanguangjing.setVisibility(View.INVISIBLE);
                    banjinYesZuofanguangjingNum = 0;
                    banjinZuofanguangjing = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "右后门":
                if (banjinNoYouhoumenNum == 0) {
                    expandYouhoumen.setBanNoBtnPress(0);
                    banjinNoYouhoumen.setVisibility(View.VISIBLE);
                    banjinNoYouhoumenNum = 1;

                    expandYouhoumen.setBanYesBtnPress(1);
                    banjinYesYouhoumen.setVisibility(View.INVISIBLE);
                    banjinYesYouhoumenNum = 0;
                    banjinYouhoumen = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandYouhoumen.setBanNoBtnPress(1);
                    banjinNoYouhoumen.setVisibility(View.INVISIBLE);
                    banjinNoYouhoumenNum = 0;

                    expandYouhoumen.setBanYesBtnPress(1);
                    banjinYesYouhoumen.setVisibility(View.INVISIBLE);
                    banjinYesYouhoumenNum = 0;
                    banjinYouhoumen = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "右前门":
                if (banjinNoYouqianmenNum == 0) {
                    expandYouqianmen.setBanNoBtnPress(0);
                    banjinNoYouqianmen.setVisibility(View.VISIBLE);
                    banjinNoYouqianmenNum = 1;

                    expandYouqianmen.setBanYesBtnPress(1);
                    banjinYesYouqianmen.setVisibility(View.INVISIBLE);
                    banjinYesYouqianmenNum = 0;
                    banjinYouqianmen = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandYouqianmen.setBanNoBtnPress(1);
                    banjinNoYouqianmen.setVisibility(View.INVISIBLE);
                    banjinNoYouqianmenNum = 0;

                    expandYouqianmen.setBanYesBtnPress(1);
                    banjinYesYouqianmen.setVisibility(View.INVISIBLE);
                    banjinYesYouqianmenNum = 0;
                    banjinYouqianmen = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "右前叶子板":
                if (banjinNoYouqianyezibanNum == 0) {
                    expandYouqianyeziban.setBanNoBtnPress(0);
                    banjinNoYouqianyeziban.setVisibility(View.VISIBLE);
                    banjinNoYouqianyezibanNum = 1;

                    expandYouqianyeziban.setBanYesBtnPress(1);
                    banjinYesYouqianyeziban.setVisibility(View.INVISIBLE);
                    banjinYesYouqianyezibanNum = 0;
                    banjinYouqianyeziban = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandYouqianyeziban.setBanNoBtnPress(1);
                    banjinNoYouqianyeziban.setVisibility(View.INVISIBLE);
                    banjinNoYouqianyezibanNum = 0;

                    expandYouqianyeziban.setBanYesBtnPress(1);
                    banjinYesYouqianyeziban.setVisibility(View.INVISIBLE);
                    banjinYesYouqianyezibanNum = 0;
                    banjinYouqianyeziban = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "后盖":
                if (banjinNoHougaiNum == 0) {
                    expandHougai.setBanNoBtnPress(0);
                    banjinNoHougai.setVisibility(View.VISIBLE);
                    banjinNoHougaiNum = 1;

                    expandHougai.setBanYesBtnPress(1);
                    banjinYesHougai.setVisibility(View.INVISIBLE);
                    banjinYesHougaiNum = 0;
                    banjinHougai = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandHougai.setBanNoBtnPress(1);
                    banjinNoHougai.setVisibility(View.INVISIBLE);
                    banjinNoHougaiNum = 0;

                    expandHougai.setBanYesBtnPress(1);
                    banjinYesHougai.setVisibility(View.INVISIBLE);
                    banjinYesHougaiNum = 0;
                    banjinHougai = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "左大边":
                if (banjinNoZuodabianNum == 0) {
                    expandZuodabian.setBanNoBtnPress(0);
                    banjinNoZuodabian.setVisibility(View.VISIBLE);
                    banjinNoZuodabianNum = 1;

                    expandZuodabian.setBanYesBtnPress(1);
                    banjinYesZuodabian.setVisibility(View.INVISIBLE);
                    banjinYesZuodabianNum = 0;
                    banjinZuodabian = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandZuodabian.setBanNoBtnPress(1);
                    banjinNoZuodabian.setVisibility(View.INVISIBLE);
                    banjinNoZuodabianNum = 0;

                    expandZuodabian.setBanYesBtnPress(1);
                    banjinYesZuodabian.setVisibility(View.INVISIBLE);
                    banjinYesZuodabianNum = 0;
                    banjinZuodabian = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "右大边":
                if (banjinNoYoudabianNum == 0) {
                    expandYoudabian.setBanNoBtnPress(0);
                    banjinNoYoudabian.setVisibility(View.VISIBLE);
                    banjinNoYoudabianNum = 1;

                    expandYoudabian.setBanYesBtnPress(1);
                    banjinYesYoudabian.setVisibility(View.INVISIBLE);
                    banjinYesYoudabianNum = 0;
                    banjinYoudabian = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandYoudabian.setBanNoBtnPress(1);
                    banjinNoYoudabian.setVisibility(View.INVISIBLE);
                    banjinNoYoudabianNum = 0;

                    expandYoudabian.setBanYesBtnPress(1);
                    banjinYesYoudabian.setVisibility(View.INVISIBLE);
                    banjinYesYoudabianNum = 0;
                    banjinYoudabian = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "右反光镜":
                if (banjinNoYoufanguangjingNum == 0) {
                    expandYoufanguangjing.setBanNoBtnPress(0);
                    banjinNoYoufanguangjing.setVisibility(View.VISIBLE);
                    banjinNoYoufanguangjingNum = 1;

                    expandYoufanguangjing.setBanYesBtnPress(1);
                    banjinYesYoufanguangjing.setVisibility(View.INVISIBLE);
                    banjinYesYoufanguangjingNum = 0;
                    banjinYoufanguangjing = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandYoufanguangjing.setBanNoBtnPress(1);
                    banjinNoYoufanguangjing.setVisibility(View.INVISIBLE);
                    banjinNoYoufanguangjingNum = 0;

                    expandYoufanguangjing.setBanYesBtnPress(1);
                    banjinYesYoufanguangjing.setVisibility(View.INVISIBLE);
                    banjinYesYoufanguangjingNum = 0;
                    banjinYoufanguangjing = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "左前轮毂":
                if (banjinNoZuoqianlunguNum == 0) {
                    expandZuoqianlungu.setBanNoBtnPress(0);
                    banjinNoZuoqianlungu.setVisibility(View.VISIBLE);
                    banjinNoZuoqianlunguNum = 1;

                    expandZuoqianlungu.setBanYesBtnPress(1);
                    banjinYesZuoqianlungu.setVisibility(View.INVISIBLE);
                    banjinYesZuoqianlunguNum = 0;
                    banjinZuoqianlungu = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandZuoqianlungu.setBanNoBtnPress(1);
                    banjinNoZuoqianlungu.setVisibility(View.INVISIBLE);
                    banjinNoZuoqianlunguNum = 0;
                    expandZuoqianlungu.setBanYesBtnPress(1);
                    banjinYesZuoqianlungu.setVisibility(View.INVISIBLE);
                    banjinYesZuoqianlunguNum = 0;
                    banjinZuoqianlungu = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "左后轮毂":
                if (banjinNoZuohoulunguNum == 0) {
                    expandZuohoulungu.setBanNoBtnPress(0);
                    banjinNoZuohoulungu.setVisibility(View.VISIBLE);
                    banjinNoZuohoulunguNum = 1;

                    expandZuohoulungu.setBanYesBtnPress(1);
                    banjinYesZuohoulungu.setVisibility(View.INVISIBLE);
                    banjinYesZuohoulunguNum = 0;
                    banjinZuohoulungu = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandZuohoulungu.setBanNoBtnPress(1);
                    banjinNoZuohoulungu.setVisibility(View.INVISIBLE);
                    banjinNoZuohoulunguNum = 0;

                    expandZuohoulungu.setBanYesBtnPress(1);
                    banjinYesZuohoulungu.setVisibility(View.INVISIBLE);
                    banjinYesZuohoulunguNum = 0;
                    banjinZuohoulungu = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "右前轮毂":
                if (banjinNoYouqianlunguNum == 0) {
                    expandYouqianlungu.setBanNoBtnPress(0);
                    banjinNoYouqianlungu.setVisibility(View.VISIBLE);
                    banjinNoYouqianlunguNum = 1;

                    expandYouqianlungu.setBanYesBtnPress(1);
                    banjinYesYouqianlungu.setVisibility(View.INVISIBLE);
                    banjinYesYouqianlunguNum = 0;
                    banjinYouqianlungu = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandYouqianlungu.setBanNoBtnPress(1);
                    banjinNoYouqianlungu.setVisibility(View.INVISIBLE);
                    banjinNoYouqianlunguNum = 0;

                    expandYouqianlungu.setBanYesBtnPress(1);
                    banjinYesYouqianlungu.setVisibility(View.INVISIBLE);
                    banjinYesYouqianlunguNum = 0;
                    banjinYouqianlungu = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "右后轮毂":
                if (banjinNoYouhoulunguNum == 0) {
                    expandYouhoulungu.setBanNoBtnPress(0);
                    banjinNoYouhoulungu.setVisibility(View.VISIBLE);
                    banjinNoYouhoulunguNum = 1;

                    expandYouhoulungu.setBanYesBtnPress(1);
                    banjinYesYouhoulungu.setVisibility(View.INVISIBLE);
                    banjinYesYouhoulunguNum = 0;
                    banjinYouhoulungu = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandYouhoulungu.setBanNoBtnPress(1);
                    banjinNoYouhoulungu.setVisibility(View.INVISIBLE);
                    banjinNoYouhoulunguNum = 0;

                    expandYouhoulungu.setBanYesBtnPress(1);
                    banjinYesYouhoulungu.setVisibility(View.INVISIBLE);
                    banjinYesYouhoulunguNum = 0;
                    banjinYouhoulungu = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "后杠":
                if (banjinNoHougangNum == 0) {
                    expandHougang.setBanNoBtnPress(0);
                    banjinNoHougang.setVisibility(View.VISIBLE);
                    banjinNoHougangNum = 1;

                    expandHougang.setBanYesBtnPress(1);
                    banjinYesHougang.setVisibility(View.INVISIBLE);
                    banjinYesHougangNum = 0;
                    banjinHougang = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandHougang.setBanNoBtnPress(1);
                    banjinNoHougang.setVisibility(View.INVISIBLE);
                    banjinNoHougangNum = 0;
                    expandHougang.setBanYesBtnPress(1);
                    banjinYesHougang.setVisibility(View.INVISIBLE);
                    banjinYesHougangNum = 0;
                    banjinHougang = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            case "右后叶子板":
                if (banjinNoYouhouyezibanNum == 0) {
                    expandYouhouyeziban.setBanNoBtnPress(0);
                    banjinNoYouhouyeziban.setVisibility(View.VISIBLE);
                    banjinNoYouhouyezibanNum = 1;

                    expandYouhouyeziban.setBanYesBtnPress(1);
                    banjinYesYouhouyeziban.setVisibility(View.INVISIBLE);
                    banjinYesYouhouyezibanNum = 0;
                    banjinYouhouyeziban = 2;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                } else {
                    expandYouhouyeziban.setBanNoBtnPress(1);
                    banjinNoYouhouyeziban.setVisibility(View.INVISIBLE);
                    banjinNoYouhouyezibanNum = 0;

                    expandYouhouyeziban.setBanYesBtnPress(1);
                    banjinYesYouhouyeziban.setVisibility(View.INVISIBLE);
                    banjinYesYouhouyezibanNum = 0;
                    banjinYouhouyeziban = 1;
                    banjinNumBtn.setText("钣金:" + getBanjinNum());
                }
                break;
            default:
                break;

        }

    }

    @Override
    public void onClickPenYes(String title) {
        switch (title) {
            case "前杠":
                if (penqiYesQiangangNum == 0) {
                    expandQiangang.setPenYesBtnPress(0);
                    penqiYesQiangang.setVisibility(View.VISIBLE);
                    penqiYesQiangangNum = 1;

                    expandQiangang.setPenNoBtnPress(1);
                    penqiNoQiangang.setVisibility(View.INVISIBLE);
                    penqiNoQiangangNum = 0;
                    penqiQiangang = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandQiangang.setPenYesBtnPress(1);
                    penqiYesQiangang.setVisibility(View.INVISIBLE);
                    penqiYesQiangangNum = 0;

                    expandQiangang.setPenNoBtnPress(1);
                    penqiNoQiangang.setVisibility(View.INVISIBLE);
                    penqiNoQiangangNum = 0;
                    penqiQiangang = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "左前叶子板":
                if (penqiYesZuoQianyeziNum == 0) {
                    expandZuoqianyezi.setPenYesBtnPress(0);
                    penqiYesZuoQianyezi.setVisibility(View.VISIBLE);
                    penqiYesZuoQianyeziNum = 1;

                    expandZuoqianyezi.setPenNoBtnPress(1);
                    penqiNoZuoQianyezi.setVisibility(View.INVISIBLE);
                    penqiNoZuoQianyeziNum = 0;
                    penqiZuoQianyezi = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandZuoqianyezi.setPenYesBtnPress(1);
                    penqiYesZuoQianyezi.setVisibility(View.INVISIBLE);
                    penqiYesZuoQianyeziNum = 0;

                    expandZuoqianyezi.setPenNoBtnPress(1);
                    penqiNoZuoQianyezi.setVisibility(View.INVISIBLE);
                    penqiNoZuoQianyeziNum = 0;
                    penqiZuoQianyezi = 1;

                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "左前门":
                if (penqiYesZuoqianmenNum == 0) {
                    expandZuoqianmen.setPenYesBtnPress(0);
                    penqiYesZuoqianmen.setVisibility(View.VISIBLE);
                    penqiYesZuoqianmenNum = 1;

                    expandZuoqianmen.setPenNoBtnPress(1);
                    penqiNoZuoqianmen.setVisibility(View.INVISIBLE);
                    penqiNoZuoqianmenNum = 0;
                    penqiZuoqianmen = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandZuoqianmen.setPenYesBtnPress(1);
                    penqiYesZuoqianmen.setVisibility(View.INVISIBLE);
                    penqiYesZuoqianmenNum = 0;

                    expandZuoqianmen.setPenNoBtnPress(1);
                    penqiNoZuoqianmen.setVisibility(View.INVISIBLE);
                    penqiNoZuoqianmenNum = 0;
                    penqiZuoqianmen = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "左后门":
                if (penqiYesZuohoumenNum == 0) {
                    expandZuohoumen.setPenYesBtnPress(0);
                    penqiYesZuohoumen.setVisibility(View.VISIBLE);
                    penqiYesZuohoumenNum = 1;

                    expandZuohoumen.setPenNoBtnPress(1);
                    penqiNoZuohoumen.setVisibility(View.INVISIBLE);
                    penqiNoZuohoumenNum = 0;
                    penqiZuohoumen = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandZuohoumen.setPenYesBtnPress(1);
                    penqiYesZuohoumen.setVisibility(View.INVISIBLE);
                    penqiYesZuohoumenNum = 0;
                    expandZuohoumen.setPenNoBtnPress(1);
                    penqiNoZuohoumen.setVisibility(View.INVISIBLE);
                    penqiNoZuohoumenNum = 0;
                    penqiZuohoumen = 1;

                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "左后叶子板":
                if (penqiYesZuohouyezibanNum == 0) {
                    expandZuohouyeziban.setPenYesBtnPress(0);
                    penqiYesZuohouyeziban.setVisibility(View.VISIBLE);
                    penqiYesZuohouyezibanNum = 1;

                    expandZuohouyeziban.setPenNoBtnPress(1);
                    penqiNoZuohouyeziban.setVisibility(View.INVISIBLE);
                    penqiNoZuohouyezibanNum = 0;
                    penqiZuohouyeziban = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandZuohouyeziban.setPenYesBtnPress(1);
                    penqiYesZuohouyeziban.setVisibility(View.INVISIBLE);
                    penqiYesZuohouyezibanNum = 0;

                    expandZuohouyeziban.setPenNoBtnPress(1);
                    penqiNoZuohouyeziban.setVisibility(View.INVISIBLE);
                    penqiNoZuohouyezibanNum = 0;
                    penqiZuohouyeziban = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "机盖":
                if (penqiYesJigaiNum == 0) {
                    expandJigai.setPenYesBtnPress(0);
                    penqiYesJigai.setVisibility(View.VISIBLE);
                    penqiYesJigaiNum = 1;

                    expandJigai.setPenNoBtnPress(1);
                    penqiNoJigai.setVisibility(View.INVISIBLE);
                    penqiNoJigaiNum = 0;
                    penqiJigai = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandJigai.setPenYesBtnPress(1);
                    penqiYesJigai.setVisibility(View.INVISIBLE);
                    penqiYesJigaiNum = 0;
                    expandJigai.setPenNoBtnPress(1);
                    penqiNoJigai.setVisibility(View.INVISIBLE);
                    penqiNoJigaiNum = 0;
                    penqiJigai = 1;

                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "左反光镜":
                if (penqiYesZuofanguangjingNum == 0) {
                    expandZuofanguangjing.setPenYesBtnPress(0);
                    penqiYesZuofanguangjing.setVisibility(View.VISIBLE);
                    penqiYesZuofanguangjingNum = 1;

                    expandZuofanguangjing.setPenNoBtnPress(1);
                    penqiNoZuofanguangjing.setVisibility(View.INVISIBLE);
                    penqiNoZuofanguangjingNum = 0;
                    penqiZuofanguangjing = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandZuofanguangjing.setPenYesBtnPress(1);
                    penqiYesZuohouyeziban.setVisibility(View.INVISIBLE);
                    penqiYesZuofanguangjingNum = 0;

                    expandZuofanguangjing.setPenNoBtnPress(1);
                    penqiNoZuofanguangjing.setVisibility(View.INVISIBLE);
                    penqiNoZuofanguangjingNum = 0;
                    penqiZuofanguangjing = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "右后门":
                if (penqiYesYouhoumenNum == 0) {
                    expandYouhoumen.setPenYesBtnPress(0);
                    penqiYesYouhoumen.setVisibility(View.VISIBLE);
                    penqiYesYouhoumenNum = 1;

                    expandYouhoumen.setPenNoBtnPress(1);
                    penqiNoYouhoumen.setVisibility(View.INVISIBLE);
                    penqiNoYouhoumenNum = 0;
                    penqiYouhoumen = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandYouhoumen.setPenYesBtnPress(1);
                    penqiYesYouhoumen.setVisibility(View.INVISIBLE);
                    penqiYesYouhoumenNum = 0;

                    expandYouhoumen.setPenNoBtnPress(1);
                    penqiNoYouhoumen.setVisibility(View.INVISIBLE);
                    penqiNoYouhoumenNum = 0;
                    penqiYouhoumen = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "右前门":
                if (penqiYesYouqianmenNum == 0) {
                    expandYouqianmen.setPenYesBtnPress(0);
                    penqiYesYouqianmen.setVisibility(View.VISIBLE);
                    penqiYesYouqianmenNum = 1;

                    expandYouqianmen.setPenNoBtnPress(1);
                    penqiNoYouqianmen.setVisibility(View.INVISIBLE);
                    penqiNoYouqianmenNum = 0;
                    penqiYouqianmen = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandYouqianmen.setPenYesBtnPress(1);
                    penqiYesYouqianmen.setVisibility(View.INVISIBLE);
                    penqiYesYouqianmenNum = 0;

                    expandYouqianmen.setPenNoBtnPress(1);
                    penqiNoYouqianmen.setVisibility(View.INVISIBLE);
                    penqiNoYouqianmenNum = 0;
                    penqiYouqianmen = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "右前叶子板":
                if (penqiYesYouqianyezibanNum == 0) {
                    expandYouqianyeziban.setPenYesBtnPress(0);
                    penqiYesYouqianyeziban.setVisibility(View.VISIBLE);
                    penqiYesYouqianyezibanNum = 1;

                    expandYouqianyeziban.setPenNoBtnPress(1);
                    penqiNoYouqianyeziban.setVisibility(View.INVISIBLE);
                    penqiNoYouqianyezibanNum = 0;
                    penqiYouqianyeziban = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandYouqianyeziban.setPenYesBtnPress(1);
                    penqiYesYouqianyeziban.setVisibility(View.INVISIBLE);
                    penqiYesYouqianyezibanNum = 0;

                    expandYouqianyeziban.setPenNoBtnPress(1);
                    penqiNoYouqianyeziban.setVisibility(View.INVISIBLE);
                    penqiNoYouqianyezibanNum = 0;
                    penqiYouqianyeziban = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "后盖":
                if (penqiYesHougaiNum == 0) {
                    expandHougai.setPenYesBtnPress(0);
                    penqiYesHougai.setVisibility(View.VISIBLE);
                    penqiYesHougaiNum = 1;

                    expandHougai.setPenNoBtnPress(1);
                    penqiNoHougai.setVisibility(View.INVISIBLE);
                    penqiNoHougaiNum = 0;
                    penqiHougai = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandHougai.setPenYesBtnPress(1);
                    penqiYesHougai.setVisibility(View.INVISIBLE);
                    penqiYesHougaiNum = 0;

                    expandHougai.setPenNoBtnPress(1);
                    penqiNoHougai.setVisibility(View.INVISIBLE);
                    penqiNoHougaiNum = 0;
                    penqiHougai = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "左大边":
                if (penqiYesZuodabianNum == 0) {
                    expandZuodabian.setPenYesBtnPress(0);
                    penqiYesZuodabian.setVisibility(View.VISIBLE);
                    penqiYesZuodabianNum = 1;

                    expandZuodabian.setPenNoBtnPress(1);
                    penqiNoZuodabian.setVisibility(View.INVISIBLE);
                    penqiNoZuodabianNum = 0;
                    penqiZuodabian = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandZuodabian.setPenYesBtnPress(1);
                    penqiYesZuodabian.setVisibility(View.INVISIBLE);
                    penqiYesZuodabianNum = 0;
                    expandZuodabian.setPenNoBtnPress(1);
                    penqiNoZuodabian.setVisibility(View.INVISIBLE);
                    penqiNoZuodabianNum = 0;
                    penqiZuodabian = 1;

                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "右大边":
                if (penqiYesYoudabianNum == 0) {
                    expandYoudabian.setPenYesBtnPress(0);
                    penqiYesYoudabian.setVisibility(View.VISIBLE);
                    penqiYesYoudabianNum = 1;

                    expandYoudabian.setPenNoBtnPress(1);
                    penqiNoYoudabian.setVisibility(View.INVISIBLE);
                    penqiNoYoudabianNum = 0;
                    penqiYoudabian = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandYoudabian.setPenYesBtnPress(1);
                    penqiYesYoudabian.setVisibility(View.INVISIBLE);
                    penqiYesYoudabianNum = 0;

                    expandYoudabian.setPenNoBtnPress(1);
                    penqiNoYoudabian.setVisibility(View.INVISIBLE);
                    penqiNoYoudabianNum = 0;
                    penqiYoudabian = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "右反光镜":
                if (penqiYesYoufanguangjingNum == 0) {
                    expandYoufanguangjing.setPenYesBtnPress(0);
                    penqiYesYoufanguangjing.setVisibility(View.VISIBLE);
                    penqiYesYoufanguangjingNum = 1;

                    expandYoufanguangjing.setPenNoBtnPress(1);
                    penqiNoYoufanguangjing.setVisibility(View.INVISIBLE);
                    penqiNoYoufanguangjingNum = 0;
                    penqiYoufanguangjing = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandYoufanguangjing.setPenYesBtnPress(1);
                    penqiYesYoufanguangjing.setVisibility(View.INVISIBLE);
                    penqiYesYoufanguangjingNum = 0;

                    expandYoufanguangjing.setPenNoBtnPress(1);
                    penqiNoYoufanguangjing.setVisibility(View.INVISIBLE);
                    penqiNoYoufanguangjingNum = 0;
                    penqiYoufanguangjing = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "左前轮毂":
                if (penqiYesZuoqianlunguNum == 0) {
                    expandZuoqianlungu.setPenYesBtnPress(0);
                    penqiYesZuoqianlungu.setVisibility(View.VISIBLE);
                    penqiYesZuoqianlunguNum = 1;

                    expandZuoqianlungu.setPenNoBtnPress(1);
                    penqiNoZuoqianlungu.setVisibility(View.INVISIBLE);
                    penqiNoZuoqianlunguNum = 0;
                    penqiZuoqianlungu = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandZuoqianlungu.setPenYesBtnPress(1);
                    penqiYesZuoqianlungu.setVisibility(View.INVISIBLE);
                    penqiYesZuoqianlunguNum = 0;

                    expandZuoqianlungu.setPenNoBtnPress(1);
                    penqiNoZuoqianlungu.setVisibility(View.INVISIBLE);
                    penqiNoZuoqianlunguNum = 0;
                    penqiZuoqianlungu = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "左后轮毂":
                if (penqiYesZuohoulunguNum == 0) {
                    expandZuohoulungu.setPenYesBtnPress(0);
                    penqiYesZuohoulungu.setVisibility(View.VISIBLE);
                    penqiYesZuohoulunguNum = 1;
                    expandZuohoulungu.setPenNoBtnPress(1);
                    penqiNoZuohoulungu.setVisibility(View.INVISIBLE);
                    penqiNoZuohoulunguNum = 0;
                    penqiZuohoulungu = 3;

                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandZuohoulungu.setPenYesBtnPress(1);
                    penqiYesZuohoulungu.setVisibility(View.INVISIBLE);
                    penqiYesZuohoulunguNum = 0;

                    expandZuohoulungu.setPenNoBtnPress(1);
                    penqiNoZuohoulungu.setVisibility(View.INVISIBLE);
                    penqiNoZuohoulunguNum = 0;
                    penqiZuohoulungu = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "右前轮毂":
                if (penqiYesYouqianlunguNum == 0) {
                    expandYouqianlungu.setPenYesBtnPress(0);
                    penqiYesYouqianlungu.setVisibility(View.VISIBLE);
                    penqiYesYouqianlunguNum = 1;

                    expandYouqianlungu.setPenNoBtnPress(1);
                    penqiNoYouqianlungu.setVisibility(View.INVISIBLE);
                    penqiNoYouqianlunguNum = 0;
                    penqiYouqianlungu = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandYouqianlungu.setPenYesBtnPress(1);
                    penqiYesYouqianlungu.setVisibility(View.INVISIBLE);
                    penqiYesYouqianlunguNum = 0;
                    expandYouqianlungu.setPenNoBtnPress(1);
                    penqiNoYouqianlungu.setVisibility(View.INVISIBLE);
                    penqiNoYouqianlunguNum = 0;
                    penqiYouqianlungu = 1;

                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "右后轮毂":
                if (penqiYesYouhoulunguNum == 0) {
                    expandYouhoulungu.setPenYesBtnPress(0);
                    penqiYesYouhoulungu.setVisibility(View.VISIBLE);
                    penqiYesYouhoulunguNum = 1;

                    expandYouhoulungu.setPenNoBtnPress(1);
                    penqiNoYouhoulungu.setVisibility(View.INVISIBLE);
                    penqiNoYouhoulunguNum = 0;
                    penqiYouhoulungu = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandYouhoulungu.setPenYesBtnPress(1);
                    penqiYesYouhoulungu.setVisibility(View.INVISIBLE);
                    penqiYesYouhoulunguNum = 0;

                    expandYouhoulungu.setPenNoBtnPress(1);
                    penqiNoYouhoulungu.setVisibility(View.INVISIBLE);
                    penqiNoYouhoulunguNum = 0;
                    penqiYouhoulungu = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "后杠":
                if (penqiYesHougangNum == 0) {
                    expandHougang.setPenYesBtnPress(0);
                    penqiYesHougang.setVisibility(View.VISIBLE);
                    penqiYesHougangNum = 1;
                    expandHougang.setPenNoBtnPress(1);
                    penqiNoHougang.setVisibility(View.INVISIBLE);
                    penqiNoHougangNum = 0;
                    penqiHougang = 3;

                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandHougang.setPenYesBtnPress(1);
                    penqiYesHougang.setVisibility(View.INVISIBLE);
                    penqiYesHougangNum = 0;

                    expandHougang.setPenNoBtnPress(1);
                    penqiNoHougang.setVisibility(View.INVISIBLE);
                    penqiNoHougangNum = 0;
                    penqiHougang = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "右后叶子板":
                if (penqiYesYouhouyezibanNum == 0) {
                    expandYouhouyeziban.setPenYesBtnPress(0);
                    penqiYesYouhouyeziban.setVisibility(View.VISIBLE);
                    penqiYesYouhouyezibanNum = 1;

                    expandYouhouyeziban.setPenNoBtnPress(1);
                    penqiNoYouhouyeziban.setVisibility(View.INVISIBLE);
                    penqiNoYouhouyezibanNum = 0;
                    penqiYouhouyeziban = 3;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandYouhouyeziban.setPenYesBtnPress(1);
                    penqiYesYouhouyeziban.setVisibility(View.INVISIBLE);
                    penqiYesYouhouyezibanNum = 0;

                    expandYouhouyeziban.setPenNoBtnPress(1);
                    penqiNoYouhouyeziban.setVisibility(View.INVISIBLE);
                    penqiNoYouhouyezibanNum = 0;
                    penqiYouhouyeziban = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            default:
                break;

        }

    }

    @Override
    public void onClickPenNo(String title) {
        switch (title) {
            case "前杠":
                if (penqiNoQiangangNum == 0) {
                    expandQiangang.setPenNoBtnPress(0);
                    penqiNoQiangang.setVisibility(View.VISIBLE);
                    penqiNoQiangangNum = 1;

                    expandQiangang.setPenYesBtnPress(1);
                    banjinYesQiangang.setVisibility(View.INVISIBLE);
                    banjinYesQiangangNum = 0;
                    banjinQiangang = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandQiangang.setPenNoBtnPress(1);
                    penqiNoQiangang.setVisibility(View.INVISIBLE);
                    penqiNoQiangangNum = 0;

                    expandQiangang.setPenYesBtnPress(1);
                    banjinYesQiangang.setVisibility(View.INVISIBLE);
                    banjinYesQiangangNum = 0;
                    banjinQiangang = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "左前叶子板":
                if (penqiNoZuoQianyeziNum == 0) {
                    expandZuoqianyezi.setPenNoBtnPress(0);
                    penqiNoZuoQianyezi.setVisibility(View.VISIBLE);
                    penqiNoZuoQianyeziNum = 1;

                    expandZuoqianyezi.setPenYesBtnPress(1);
                    banjinYesZuoQianyezi.setVisibility(View.INVISIBLE);
                    banjinYesZuoQianyeziNum = 0;
                    banjinZuoQianyezi = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandZuoqianyezi.setPenNoBtnPress(1);
                    penqiNoZuoQianyezi.setVisibility(View.INVISIBLE);
                    penqiNoZuoQianyeziNum = 0;

                    expandZuoqianyezi.setPenYesBtnPress(1);
                    banjinYesZuoQianyezi.setVisibility(View.INVISIBLE);
                    banjinYesZuoQianyeziNum = 0;
                    banjinZuoQianyezi = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "左前门":
                if (penqiNoZuoqianmenNum == 0) {
                    expandZuoqianmen.setPenNoBtnPress(0);
                    penqiNoZuoqianmen.setVisibility(View.VISIBLE);
                    penqiNoZuoqianmenNum = 1;

                    expandZuoqianmen.setPenYesBtnPress(1);
                    banjinYesZuoqianmen.setVisibility(View.INVISIBLE);
                    banjinYesZuoqianmenNum = 0;
                    banjinZuoqianmen = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandZuoqianmen.setPenNoBtnPress(1);
                    penqiNoZuoqianmen.setVisibility(View.INVISIBLE);
                    penqiNoZuoqianmenNum = 0;

                    expandZuoqianmen.setPenYesBtnPress(1);
                    banjinYesZuoqianmen.setVisibility(View.INVISIBLE);
                    banjinYesZuoqianmenNum = 0;
                    banjinZuoqianmen = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "左后门":
                if (penqiNoZuohoumenNum == 0) {
                    expandZuohoumen.setPenNoBtnPress(0);
                    penqiNoZuohoumen.setVisibility(View.VISIBLE);
                    penqiNoZuohoumenNum = 1;

                    expandZuohoumen.setPenYesBtnPress(1);
                    banjinYesZuohoumen.setVisibility(View.INVISIBLE);
                    banjinYesZuohoumenNum = 0;
                    banjinZuohoumen = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandZuohoumen.setPenNoBtnPress(1);
                    penqiNoZuohoumen.setVisibility(View.INVISIBLE);
                    penqiNoZuohoumenNum = 0;
                    expandZuohoumen.setPenYesBtnPress(1);
                    banjinYesZuohoumen.setVisibility(View.INVISIBLE);
                    banjinYesZuohoumenNum = 0;
                    banjinZuohoumen = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "左后叶子板":
                if (penqiNoZuohouyezibanNum == 0) {
                    expandZuohouyeziban.setPenNoBtnPress(0);
                    penqiNoZuohouyeziban.setVisibility(View.VISIBLE);
                    penqiNoZuohouyezibanNum = 1;

                    expandZuohouyeziban.setPenYesBtnPress(1);
                    banjinYesZuohouyeziban.setVisibility(View.INVISIBLE);
                    banjinYesZuohouyezibanNum = 0;
                    banjinZuohouyeziban = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandZuohouyeziban.setPenNoBtnPress(1);
                    penqiNoZuohouyeziban.setVisibility(View.INVISIBLE);
                    penqiNoZuohouyezibanNum = 0;

                    expandZuohouyeziban.setPenYesBtnPress(1);
                    banjinYesZuohouyeziban.setVisibility(View.INVISIBLE);
                    banjinYesZuohouyezibanNum = 0;
                    banjinZuohouyeziban = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "机盖":
                if (penqiNoJigaiNum == 0) {
                    expandJigai.setPenNoBtnPress(0);
                    penqiNoJigai.setVisibility(View.VISIBLE);
                    penqiNoJigaiNum = 1;
                    expandJigai.setPenYesBtnPress(1);
                    banjinYesJigai.setVisibility(View.INVISIBLE);
                    banjinYesJigaiNum = 0;
                    banjinJigai = 2;

                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandJigai.setPenNoBtnPress(1);
                    penqiNoJigai.setVisibility(View.INVISIBLE);
                    penqiNoJigaiNum = 0;

                    expandJigai.setPenYesBtnPress(1);
                    banjinYesJigai.setVisibility(View.INVISIBLE);
                    banjinYesJigaiNum = 0;
                    banjinJigai = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "左反光镜":
                if (penqiNoZuofanguangjingNum == 0) {
                    expandZuofanguangjing.setPenNoBtnPress(0);
                    penqiNoZuofanguangjing.setVisibility(View.VISIBLE);
                    penqiNoZuofanguangjingNum = 1;

                    expandZuofanguangjing.setPenYesBtnPress(1);
                    banjinYesZuofanguangjing.setVisibility(View.INVISIBLE);
                    banjinYesZuofanguangjingNum = 0;
                    banjinZuofanguangjing = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandZuofanguangjing.setPenNoBtnPress(1);
                    penqiNoZuohouyeziban.setVisibility(View.INVISIBLE);
                    penqiNoZuofanguangjingNum = 0;
                    expandZuofanguangjing.setPenYesBtnPress(1);
                    banjinYesZuofanguangjing.setVisibility(View.INVISIBLE);
                    banjinYesZuofanguangjingNum = 0;
                    banjinZuofanguangjing = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "右后门":
                if (penqiNoYouhoumenNum == 0) {
                    expandYouhoumen.setPenNoBtnPress(0);
                    penqiNoYouhoumen.setVisibility(View.VISIBLE);
                    penqiNoYouhoumenNum = 1;

                    expandYouhoumen.setPenYesBtnPress(1);
                    banjinYesYouhoumen.setVisibility(View.INVISIBLE);
                    banjinYesYouhoumenNum = 0;
                    banjinYouhoumen = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandYouhoumen.setPenNoBtnPress(1);
                    penqiNoYouhoumen.setVisibility(View.INVISIBLE);
                    penqiNoYouhoumenNum = 0;
                    expandYouhoumen.setPenYesBtnPress(1);
                    banjinYesYouhoumen.setVisibility(View.INVISIBLE);
                    banjinYesYouhoumenNum = 0;
                    banjinYouhoumen = 1;

                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "右前门":
                if (penqiNoYouqianmenNum == 0) {
                    expandYouqianmen.setPenNoBtnPress(0);
                    penqiNoYouqianmen.setVisibility(View.VISIBLE);
                    penqiNoYouqianmenNum = 1;
                    expandYouqianmen.setPenYesBtnPress(1);
                    banjinYesYouqianmen.setVisibility(View.INVISIBLE);
                    banjinYesYouqianmenNum = 0;
                    banjinYouqianmen = 2;

                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandYouqianmen.setPenNoBtnPress(1);
                    penqiNoYouqianmen.setVisibility(View.INVISIBLE);
                    penqiNoYouqianmenNum = 0;

                    expandYouqianmen.setPenYesBtnPress(1);
                    banjinYesYouqianmen.setVisibility(View.INVISIBLE);
                    banjinYesYouqianmenNum = 0;
                    banjinYouqianmen = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "右前叶子板":
                if (penqiNoYouqianyezibanNum == 0) {
                    expandYouqianyeziban.setPenNoBtnPress(0);
                    penqiNoYouqianyeziban.setVisibility(View.VISIBLE);
                    penqiNoYouqianyezibanNum = 1;

                    expandYouqianyeziban.setPenYesBtnPress(1);
                    banjinYesYouqianyeziban.setVisibility(View.INVISIBLE);
                    banjinYesYouqianyezibanNum = 0;
                    banjinYouqianyeziban = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandYouqianyeziban.setPenNoBtnPress(1);
                    penqiNoYouqianyeziban.setVisibility(View.INVISIBLE);
                    penqiNoYouqianyezibanNum = 0;
                    expandYouqianyeziban.setPenYesBtnPress(1);
                    banjinYesYouqianyeziban.setVisibility(View.INVISIBLE);
                    banjinYesYouqianyezibanNum = 0;
                    banjinYouqianyeziban = 1;

                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "后盖":
                if (penqiNoHougaiNum == 0) {
                    expandHougai.setPenNoBtnPress(0);
                    penqiNoHougai.setVisibility(View.VISIBLE);
                    penqiNoHougaiNum = 1;

                    expandHougai.setPenYesBtnPress(1);
                    banjinYesHougai.setVisibility(View.INVISIBLE);
                    banjinYesHougaiNum = 0;
                    banjinHougai = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandHougai.setPenNoBtnPress(1);
                    penqiNoHougai.setVisibility(View.INVISIBLE);
                    penqiNoHougaiNum = 0;

                    expandHougai.setPenYesBtnPress(1);
                    banjinYesHougai.setVisibility(View.INVISIBLE);
                    banjinYesHougaiNum = 0;
                    banjinHougai = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "左大边":
                if (penqiNoZuodabianNum == 0) {
                    expandZuodabian.setPenNoBtnPress(0);
                    penqiNoZuodabian.setVisibility(View.VISIBLE);
                    penqiNoZuodabianNum = 1;

                    expandZuodabian.setPenYesBtnPress(1);
                    banjinYesZuodabian.setVisibility(View.INVISIBLE);
                    banjinYesZuodabianNum = 0;
                    banjinZuodabian = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandZuodabian.setPenNoBtnPress(1);
                    penqiNoZuodabian.setVisibility(View.INVISIBLE);
                    penqiNoZuodabianNum = 0;

                    expandZuodabian.setPenYesBtnPress(1);
                    banjinYesZuodabian.setVisibility(View.INVISIBLE);
                    banjinYesZuodabianNum = 0;
                    banjinZuodabian = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "右大边":
                if (penqiNoYoudabianNum == 0) {
                    expandYoudabian.setPenNoBtnPress(0);
                    penqiNoYoudabian.setVisibility(View.VISIBLE);
                    penqiNoYoudabianNum = 1;

                    expandYoudabian.setPenYesBtnPress(1);
                    banjinYesYoudabian.setVisibility(View.INVISIBLE);
                    banjinYesYoudabianNum = 0;
                    banjinYoudabian = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandYoudabian.setPenNoBtnPress(1);
                    penqiNoYoudabian.setVisibility(View.INVISIBLE);
                    penqiNoYoudabianNum = 0;

                    expandYoudabian.setPenYesBtnPress(1);
                    banjinYesYoudabian.setVisibility(View.INVISIBLE);
                    banjinYesYoudabianNum = 0;
                    banjinYoudabian = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "右反光镜":
                if (penqiNoYoufanguangjingNum == 0) {
                    expandYoufanguangjing.setPenNoBtnPress(0);
                    penqiNoYoufanguangjing.setVisibility(View.VISIBLE);
                    penqiNoYoufanguangjingNum = 1;

                    expandYoufanguangjing.setPenYesBtnPress(1);
                    banjinYesYoufanguangjing.setVisibility(View.INVISIBLE);
                    banjinYesYoufanguangjingNum = 0;
                    banjinYoufanguangjing = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandYoufanguangjing.setPenNoBtnPress(1);
                    penqiNoYoufanguangjing.setVisibility(View.INVISIBLE);
                    penqiNoYoufanguangjingNum = 0;

                    expandYoufanguangjing.setPenYesBtnPress(1);
                    banjinYesYoufanguangjing.setVisibility(View.INVISIBLE);
                    banjinYesYoufanguangjingNum = 0;
                    banjinYoufanguangjing = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "左前轮毂":
                if (penqiNoZuoqianlunguNum == 0) {
                    expandZuoqianlungu.setPenNoBtnPress(0);
                    penqiNoZuoqianlungu.setVisibility(View.VISIBLE);
                    penqiNoZuoqianlunguNum = 1;

                    expandZuoqianlungu.setPenYesBtnPress(1);
                    banjinYesZuoqianlungu.setVisibility(View.INVISIBLE);
                    banjinYesZuoqianlunguNum = 0;
                    banjinZuoqianlungu = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandZuoqianlungu.setPenNoBtnPress(1);
                    penqiNoZuoqianlungu.setVisibility(View.INVISIBLE);
                    penqiNoZuoqianlunguNum = 0;

                    expandZuoqianlungu.setPenYesBtnPress(1);
                    banjinYesZuoqianlungu.setVisibility(View.INVISIBLE);
                    banjinYesZuoqianlunguNum = 0;
                    banjinZuoqianlungu = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "左后轮毂":
                if (penqiNoZuohoulunguNum == 0) {
                    expandZuohoulungu.setPenNoBtnPress(0);
                    penqiNoZuohoulungu.setVisibility(View.VISIBLE);
                    penqiNoZuohoulunguNum = 1;

                    expandZuohoulungu.setPenYesBtnPress(1);
                    banjinYesZuohoulungu.setVisibility(View.INVISIBLE);
                    banjinYesZuohoulunguNum = 0;
                    banjinZuohoulungu = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandZuohoulungu.setPenNoBtnPress(1);
                    penqiNoZuohoulungu.setVisibility(View.INVISIBLE);
                    penqiNoZuohoulunguNum = 0;

                    expandZuohoulungu.setPenYesBtnPress(1);
                    banjinYesZuohoulungu.setVisibility(View.INVISIBLE);
                    banjinYesZuohoulunguNum = 0;
                    banjinZuohoulungu = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "右前轮毂":
                if (penqiNoYouqianlunguNum == 0) {
                    expandYouqianlungu.setPenNoBtnPress(0);
                    penqiNoYouqianlungu.setVisibility(View.VISIBLE);
                    penqiNoYouqianlunguNum = 1;

                    expandYouqianlungu.setPenYesBtnPress(1);
                    banjinYesYouqianlungu.setVisibility(View.INVISIBLE);
                    banjinYesYouqianlunguNum = 0;
                    banjinYouqianlungu = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandYouqianlungu.setPenNoBtnPress(1);
                    penqiNoYouqianlungu.setVisibility(View.INVISIBLE);
                    penqiNoYouqianlunguNum = 0;

                    expandYouqianlungu.setPenYesBtnPress(1);
                    banjinYesYouqianlungu.setVisibility(View.INVISIBLE);
                    banjinYesYouqianlunguNum = 0;
                    banjinYouqianlungu = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "右后轮毂":
                if (penqiNoYouhoulunguNum == 0) {
                    expandYouhoulungu.setPenNoBtnPress(0);
                    penqiNoYouhoulungu.setVisibility(View.VISIBLE);
                    penqiNoYouhoulunguNum = 1;

                    expandYouhoulungu.setPenYesBtnPress(1);
                    banjinYesYouhoulungu.setVisibility(View.INVISIBLE);
                    banjinYesYouhoulunguNum = 0;
                    banjinYouhoulungu = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandYouhoulungu.setPenNoBtnPress(1);
                    penqiNoYouhoulungu.setVisibility(View.INVISIBLE);
                    penqiNoYouhoulunguNum = 0;

                    expandYouhoulungu.setPenYesBtnPress(1);
                    banjinYesYouhoulungu.setVisibility(View.INVISIBLE);
                    banjinYesYouhoulunguNum = 0;
                    banjinYouhoulungu = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "后杠":
                if (penqiNoHougangNum == 0) {
                    expandHougang.setPenNoBtnPress(0);
                    penqiNoHougang.setVisibility(View.VISIBLE);
                    penqiNoHougangNum = 1;

                    expandHougang.setPenYesBtnPress(1);
                    banjinYesHougang.setVisibility(View.INVISIBLE);
                    banjinYesHougangNum = 0;
                    banjinHougang = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandHougang.setPenNoBtnPress(1);
                    penqiNoHougang.setVisibility(View.INVISIBLE);
                    penqiNoHougangNum = 0;

                    expandHougang.setPenYesBtnPress(1);
                    banjinYesHougang.setVisibility(View.INVISIBLE);
                    banjinYesHougangNum = 0;
                    banjinHougang = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            case "右后叶子板":
                if (penqiNoYouhouyezibanNum == 0) {
                    expandYouhouyeziban.setPenNoBtnPress(0);
                    penqiNoYouhouyeziban.setVisibility(View.VISIBLE);
                    penqiNoYouhouyezibanNum = 1;

                    expandYouhouyeziban.setPenYesBtnPress(1);
                    banjinYesYouhouyeziban.setVisibility(View.INVISIBLE);
                    banjinYesYouhouyezibanNum = 0;
                    banjinYouhouyeziban = 2;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                } else {
                    expandYouhouyeziban.setPenNoBtnPress(1);
                    penqiNoYouhouyeziban.setVisibility(View.INVISIBLE);
                    penqiNoYouhouyezibanNum = 0;
                    expandYouhouyeziban.setPenYesBtnPress(1);
                    banjinYesYouhouyeziban.setVisibility(View.INVISIBLE);
                    banjinYesYouhouyezibanNum = 0;
                    banjinYouhouyeziban = 1;
                    penqiNumBtn.setText("喷漆:" + getPenqiNum());
                }
                break;
            default:
                break;

        }

    }

    //初始化伤痕图片
    private void initImages() {
        //前杠
        huahenYesQiangang = (ImageView) findViewById(R.id.qiangang_huahen_yes);
        huahenNoQiangang = (ImageView) findViewById(R.id.qiangang_huahen_no);
        banjinYesQiangang = (ImageView) findViewById(R.id.qiangang_banjin_yes);
        banjinNoQiangang = (ImageView) findViewById(R.id.qiangang_banjin_no);
        penqiYesQiangang = (ImageView) findViewById(R.id.qiangang_penqi_yes);
        penqiNoQiangang = (ImageView) findViewById(R.id.qiangang_penqi_no);
        //左前叶子板
        huahenYesZuoQianyezi = (ImageView) findViewById(R.id.zuoqianyezi_huahen_yes);
        huahenNoZuoQianyezi = (ImageView) findViewById(R.id.zuoqianyezi_huahen_no);
        banjinYesZuoQianyezi = (ImageView) findViewById(R.id.zuoqianyezi_banjin_yes);
        banjinNoZuoQianyezi = (ImageView) findViewById(R.id.zuoqianyezi_banjin_no);
        penqiYesZuoQianyezi = (ImageView) findViewById(R.id.zuoqianyezi_penqi_yes);
        penqiNoZuoQianyezi = (ImageView) findViewById(R.id.zuoqianyezi_penqi_no);
        //左前门
        huahenYesZuoqianmen = (ImageView) findViewById(R.id.zuoqianmen_huahen_yes);
        huahenNoZuoqianmen = (ImageView) findViewById(R.id.zuoqianmen_huahen_no);
        banjinYesZuoqianmen = (ImageView) findViewById(R.id.zuoqianmen_banjin_yes);
        banjinNoZuoqianmen = (ImageView) findViewById(R.id.zuoqianmen_banjin_no);
        penqiYesZuoqianmen = (ImageView) findViewById(R.id.zuoqianmen_penqi_yes);
        penqiNoZuoqianmen = (ImageView) findViewById(R.id.zuoqianmen_penqi_no);
        //左后门
        huahenYesZuohoumen = (ImageView) findViewById(R.id.zuohoumen_huahen_yes);
        huahenNoZuohoumen = (ImageView) findViewById(R.id.zuohoumen_huahen_no);
        banjinYesZuohoumen = (ImageView) findViewById(R.id.zuohoumen_banjin_yes);
        banjinNoZuohoumen = (ImageView) findViewById(R.id.zuohoumen_banjin_no);
        penqiYesZuohoumen = (ImageView) findViewById(R.id.zuohoumen_penqi_yes);
        penqiNoZuohoumen = (ImageView) findViewById(R.id.zuohoumen_penqi_no);
        //左后叶子板
        huahenYesZuohouyeziban = (ImageView) findViewById(R.id.zuohouyezi_huahen_yes);
        huahenNoZuohouyeziban = (ImageView) findViewById(R.id.zuohouyezi_huahen_no);
        banjinYesZuohouyeziban = (ImageView) findViewById(R.id.zuohouyezi_banjin_yes);
        banjinNoZuohouyeziban = (ImageView) findViewById(R.id.zuohouyezi_banjin_no);
        penqiYesZuohouyeziban = (ImageView) findViewById(R.id.zuohouyezi_penqi_yes);
        penqiNoZuohouyeziban = (ImageView) findViewById(R.id.zuohouyezi_penqi_no);
        //机盖(前盖
        huahenYesJigai = (ImageView) findViewById(R.id.qiangai_huahen_yes);
        huahenNoJigai = (ImageView) findViewById(R.id.qiangai_huahen_no);
        banjinYesJigai = (ImageView) findViewById(R.id.qiangai_banjin_yes);
        banjinNoJigai = (ImageView) findViewById(R.id.qiangai_banjin_no);
        penqiYesJigai = (ImageView) findViewById(R.id.qiangai_penqi_yes);
        penqiNoJigai = (ImageView) findViewById(R.id.qiangai_penqi_no);
        //左反光镜
        huahenYesZuofanguangjing = (ImageView) findViewById(R.id.zuofanguangjing_huahen_yes);
        huahenNoZuofanguangjing = (ImageView) findViewById(R.id.zuofanguangjing_huahen_no);
        banjinYesZuofanguangjing = (ImageView) findViewById(R.id.zuofanguangjing_banjin_yes);
        banjinNoZuofanguangjing = (ImageView) findViewById(R.id.zuofanguangjing_banjin_no);
        penqiYesZuofanguangjing = (ImageView) findViewById(R.id.zuofanguangjing_penqi_yes);
        penqiNoZuofanguangjing = (ImageView) findViewById(R.id.zuofanguangjing_penqi_no);
        //右后门
        huahenYesYouhoumen = (ImageView) findViewById(R.id.youhoumen_huahen_yes);
        huahenNoYouhoumen = (ImageView) findViewById(R.id.youhoumen_huahen_no);
        banjinYesYouhoumen = (ImageView) findViewById(R.id.youhoumen_banjin_yes);
        banjinNoYouhoumen = (ImageView) findViewById(R.id.youhoumen_banjin_no);
        penqiYesYouhoumen = (ImageView) findViewById(R.id.youhoumen_penqi_yes);
        penqiNoYouhoumen = (ImageView) findViewById(R.id.youhoumen_penqi_no);
        //右前门
        huahenYesYouqianmen = (ImageView) findViewById(R.id.youqianmen_huahen_yes);
        huahenNoYouqianmen = (ImageView) findViewById(R.id.youqianmen_huahen_no);
        banjinYesYouqianmen = (ImageView) findViewById(R.id.youqianmen_banjin_yes);
        banjinNoYouqianmen = (ImageView) findViewById(R.id.youqianmen_banjin_no);
        penqiYesYouqianmen = (ImageView) findViewById(R.id.youqianmen_penqi_yes);
        penqiNoYouqianmen = (ImageView) findViewById(R.id.youqianmen_penqi_no);
        //右前叶子板
        huahenYesYouqianyeziban = (ImageView) findViewById(R.id.youqianyezi_huahen_yes);
        huahenNoYouqianyeziban = (ImageView) findViewById(R.id.youqianyezi_huahen_no);
        banjinYesYouqianyeziban = (ImageView) findViewById(R.id.youqianyezi_banjin_yes);
        banjinNoYouqianyeziban = (ImageView) findViewById(R.id.youqianyezi_banjin_no);
        penqiYesYouqianyeziban = (ImageView) findViewById(R.id.youqianyezi_penqi_yes);
        penqiNoYouqianyeziban = (ImageView) findViewById(R.id.youqianyezi_penqi_no);
        //后盖
        huahenYesHougai = (ImageView) findViewById(R.id.hougai_huahen_yes);
        huahenNoHougai = (ImageView) findViewById(R.id.hougai_huahen_no);
        banjinYesHougai = (ImageView) findViewById(R.id.hougai_banjin_yes);
        banjinNoHougai = (ImageView) findViewById(R.id.hougai_banjin_no);
        penqiYesHougai = (ImageView) findViewById(R.id.hougai_penqi_yes);
        penqiNoHougai = (ImageView) findViewById(R.id.hougai_penqi_no);
        //左大边
        huahenYesZuodabian = (ImageView) findViewById(R.id.zuodabian_huahen_yes);
        huahenNoZuodabian = (ImageView) findViewById(R.id.zuodabian_huahen_no);
        banjinYesZuodabian = (ImageView) findViewById(R.id.zuodabian_banjin_yes);
        banjinNoZuodabian = (ImageView) findViewById(R.id.zuodabian_banjin_no);
        penqiYesZuodabian = (ImageView) findViewById(R.id.zuodabian_penqi_yes);
        penqiNoZuodabian = (ImageView) findViewById(R.id.zuodabian_penqi_no);
        //右大边
        huahenYesYoudabian = (ImageView) findViewById(R.id.youdabian_huahen_yes);
        huahenNoYoudabian = (ImageView) findViewById(R.id.youdabian_huahen_no);
        banjinYesYoudabian = (ImageView) findViewById(R.id.youdabian_banjin_yes);
        banjinNoYoudabian = (ImageView) findViewById(R.id.youdabian_banjin_no);
        penqiYesYoudabian = (ImageView) findViewById(R.id.youdabian_penqi_yes);
        penqiNoYoudabian = (ImageView) findViewById(R.id.youdabian_penqi_no);
        //右反光镜
        huahenYesYoufanguangjing = (ImageView) findViewById(R.id.youfanguangjing_huahen_yes);
        huahenNoYoufanguangjing = (ImageView) findViewById(R.id.youfanguangjing_huahen_no);
        banjinYesYoufanguangjing = (ImageView) findViewById(R.id.youfanguangjing_banjin_yes);
        banjinNoYoufanguangjing = (ImageView) findViewById(R.id.youfanguangjing_banjin_no);
        penqiYesYoufanguangjing = (ImageView) findViewById(R.id.youfanguangjing_penqi_yes);
        penqiNoYoufanguangjing = (ImageView) findViewById(R.id.youfanguangjing_penqi_no);
        //左前轮
        huahenYesZuoqianlungu = (ImageView) findViewById(R.id.zuoqianlun_huahen_yes);
        huahenNoZuoqianlungu = (ImageView) findViewById(R.id.zuoqianlun_huahen_no);
        banjinYesZuoqianlungu = (ImageView) findViewById(R.id.zuoqianlun_banjin_yes);
        banjinNoZuoqianlungu = (ImageView) findViewById(R.id.zuoqianlun_banjin_no);
        penqiYesZuoqianlungu = (ImageView) findViewById(R.id.zuoqianlun_penqi_yes);
        penqiNoZuoqianlungu = (ImageView) findViewById(R.id.zuoqianlun_penqi_no);
        //左后轮
        huahenYesZuohoulungu = (ImageView) findViewById(R.id.zuohoulun_huahen_yes);
        huahenNoZuohoulungu = (ImageView) findViewById(R.id.zuohoulun_huahen_no);
        banjinYesZuohoulungu = (ImageView) findViewById(R.id.zuohoulun_banjin_yes);
        banjinNoZuohoulungu = (ImageView) findViewById(R.id.zuohoulun_banjin_no);
        penqiYesZuohoulungu = (ImageView) findViewById(R.id.zuohoulun_penqi_yes);
        penqiNoZuohoulungu = (ImageView) findViewById(R.id.zuohoulun_penqi_no);
        //右前轮
        huahenYesYouqianlungu = (ImageView) findViewById(R.id.youqianlun_huahen_yes);
        huahenNoYouqianlungu = (ImageView) findViewById(R.id.youqianlun_huahen_no);
        banjinYesYouqianlungu = (ImageView) findViewById(R.id.youqianlun_banjin_yes);
        banjinNoYouqianlungu = (ImageView) findViewById(R.id.youqianlun_banjin_no);
        penqiYesYouqianlungu = (ImageView) findViewById(R.id.youqianlun_penqi_yes);
        penqiNoYouqianlungu = (ImageView) findViewById(R.id.youqianlun_penqi_no);
        //右后轮
        huahenYesYouhoulungu = (ImageView) findViewById(R.id.youhoulun_huahen_yes);
        huahenNoYouhoulungu = (ImageView) findViewById(R.id.youhoulun_huahen_no);
        banjinYesYouhoulungu = (ImageView) findViewById(R.id.youhoulun_banjin_yes);
        banjinNoYouhoulungu = (ImageView) findViewById(R.id.youhoulun_banjin_no);
        penqiYesYouhoulungu = (ImageView) findViewById(R.id.youhoulun_penqi_yes);
        penqiNoYouhoulungu = (ImageView) findViewById(R.id.youhoulun_penqi_no);
        //后杠
        huahenYesHougang = (ImageView) findViewById(R.id.hougang_huahen_yes);
        huahenNoHougang = (ImageView) findViewById(R.id.hougang_huahen_no);
        banjinYesHougang = (ImageView) findViewById(R.id.hougang_banjin_yes);
        banjinNoHougang = (ImageView) findViewById(R.id.hougang_banjin_no);
        penqiYesHougang = (ImageView) findViewById(R.id.hougang_penqi_yes);
        penqiNoHougang = (ImageView) findViewById(R.id.hougang_penqi_no);
        //右后叶子板
        huahenYesYouhouyeziban = (ImageView) findViewById(R.id.youhouyezi_huahen_yes);
        huahenNoYouhouyeziban = (ImageView) findViewById(R.id.youhouyezi_huahen_no);
        banjinYesYouhouyeziban = (ImageView) findViewById(R.id.youhouyezi_banjin_yes);
        banjinNoYouhouyeziban = (ImageView) findViewById(R.id.youhouyezi_banjin_no);
        penqiYesYouhouyeziban = (ImageView) findViewById(R.id.youhouyezi_penqi_yes);
        penqiNoYouhouyeziban = (ImageView) findViewById(R.id.youhouyezi_penqi_no);
    }

    private void initExpandLayout() {
        //前杠
        expandQiangang = (ExpandLayout) findViewById(R.id.qiangang_expand);
        expandQiangang.setTitleText("前杠");
        expandQiangang.setClickHuaYes(this);
        expandQiangang.setClickHuaNo(this);
        expandQiangang.setClickBanYes(this);
        expandQiangang.setClickBanNo(this);
        expandQiangang.setClickPenYes(this);
        expandQiangang.setClickPenNo(this);
        //左前叶子
        expandZuoqianyezi = (ExpandLayout) findViewById(R.id.zuoqianyezi_expand);
        expandZuoqianyezi.setTitleText("左前叶子板");
        expandZuoqianyezi.setClickHuaYes(this);
        expandZuoqianyezi.setClickHuaNo(this);
        expandZuoqianyezi.setClickBanYes(this);
        expandZuoqianyezi.setClickBanNo(this);
        expandZuoqianyezi.setClickPenYes(this);
        expandZuoqianyezi.setClickPenNo(this);
        //左前门
        expandZuoqianmen = (ExpandLayout) findViewById(R.id.zuoqianmen_expand);
        expandZuoqianmen.setTitleText("左前门");
        expandZuoqianmen.setClickHuaYes(this);
        expandZuoqianmen.setClickHuaNo(this);
        expandZuoqianmen.setClickBanYes(this);
        expandZuoqianmen.setClickBanNo(this);
        expandZuoqianmen.setClickPenYes(this);
        expandZuoqianmen.setClickPenNo(this);
        //左后门
        expandZuohoumen = (ExpandLayout) findViewById(R.id.zuohoumen_expand);
        expandZuohoumen.setTitleText("左后门");
        expandZuohoumen.setClickHuaYes(this);
        expandZuohoumen.setClickHuaNo(this);
        expandZuohoumen.setClickBanYes(this);
        expandZuohoumen.setClickBanNo(this);
        expandZuohoumen.setClickPenYes(this);
        expandZuohoumen.setClickPenNo(this);
        //左后叶子
        expandZuohouyeziban = (ExpandLayout) findViewById(R.id.zuohouyezi_expand);
        expandZuohouyeziban.setTitleText("左后叶子板");
        expandZuohouyeziban.setClickHuaYes(this);
        expandZuohouyeziban.setClickHuaNo(this);
        expandZuohouyeziban.setClickBanYes(this);
        expandZuohouyeziban.setClickBanNo(this);
        expandZuohouyeziban.setClickPenYes(this);
        expandZuohouyeziban.setClickPenNo(this);
        //机盖
        expandJigai = (ExpandLayout) findViewById(R.id.jigai_expand);
        expandJigai.setTitleText("机盖");
        expandJigai.setClickHuaYes(this);
        expandJigai.setClickHuaNo(this);
        expandJigai.setClickBanYes(this);
        expandJigai.setClickBanNo(this);
        expandJigai.setClickPenYes(this);
        expandJigai.setClickPenNo(this);
        //左反光镜
        expandZuofanguangjing = (ExpandLayout) findViewById(R.id.zuofanguangjing_expand);
        expandZuofanguangjing.setTitleText("左反光镜");
        expandZuofanguangjing.setClickHuaYes(this);
        expandZuofanguangjing.setClickHuaNo(this);
        expandZuofanguangjing.setClickBanYes(this);
        expandZuofanguangjing.setClickBanNo(this);
        expandZuofanguangjing.setClickPenYes(this);
        expandZuofanguangjing.setClickPenNo(this);
        //右后门
        expandYouhoumen = (ExpandLayout) findViewById(R.id.youhoumen_expand);
        expandYouhoumen.setTitleText("右后门");
        expandYouhoumen.setClickHuaYes(this);
        expandYouhoumen.setClickHuaNo(this);
        expandYouhoumen.setClickBanYes(this);
        expandYouhoumen.setClickBanNo(this);
        expandYouhoumen.setClickPenYes(this);
        expandYouhoumen.setClickPenNo(this);
        //右前门
        expandYouqianmen = (ExpandLayout) findViewById(R.id.youqianmen_expand);
        expandYouqianmen.setTitleText("右前门");
        expandYouqianmen.setClickHuaYes(this);
        expandYouqianmen.setClickHuaNo(this);
        expandYouqianmen.setClickBanYes(this);
        expandYouqianmen.setClickBanNo(this);
        expandYouqianmen.setClickPenYes(this);
        expandYouqianmen.setClickPenNo(this);
        //右前叶子板
        expandYouqianyeziban = (ExpandLayout) findViewById(R.id.youqianyezi_expand);
        expandYouqianyeziban.setTitleText("右前叶子板");
        expandYouqianyeziban.setClickHuaYes(this);
        expandYouqianyeziban.setClickHuaNo(this);
        expandYouqianyeziban.setClickBanYes(this);
        expandYouqianyeziban.setClickBanNo(this);
        expandYouqianyeziban.setClickPenYes(this);
        expandYouqianyeziban.setClickPenNo(this);
        //后盖
        expandHougai = (ExpandLayout) findViewById(R.id.hougai_expand);
        expandHougai.setTitleText("后盖");
        expandHougai.setClickHuaYes(this);
        expandHougai.setClickHuaNo(this);
        expandHougai.setClickBanYes(this);
        expandHougai.setClickBanNo(this);
        expandHougai.setClickPenYes(this);
        expandHougai.setClickPenNo(this);
        //左大边
        expandZuodabian = (ExpandLayout) findViewById(R.id.zuodabian_expand);
        expandZuodabian.setTitleText("左大边");
        expandZuodabian.setClickHuaYes(this);
        expandZuodabian.setClickHuaNo(this);
        expandZuodabian.setClickBanYes(this);
        expandZuodabian.setClickBanNo(this);
        expandZuodabian.setClickPenYes(this);
        expandZuodabian.setClickPenNo(this);
        //右大边
        expandYoudabian = (ExpandLayout) findViewById(R.id.youdabian_expand);
        expandYoudabian.setTitleText("右大边");
        expandYoudabian.setClickHuaYes(this);
        expandYoudabian.setClickHuaNo(this);
        expandYoudabian.setClickBanYes(this);
        expandYoudabian.setClickBanNo(this);
        expandYoudabian.setClickPenYes(this);
        expandYoudabian.setClickPenNo(this);
        //右反光镜
        expandYoufanguangjing = (ExpandLayout) findViewById(R.id.youfanguangjing_expand);
        expandYoufanguangjing.setTitleText("右反光镜");
        expandYoufanguangjing.setClickHuaYes(this);
        expandYoufanguangjing.setClickHuaNo(this);
        expandYoufanguangjing.setClickBanYes(this);
        expandYoufanguangjing.setClickBanNo(this);
        expandYoufanguangjing.setClickPenYes(this);
        expandYoufanguangjing.setClickPenNo(this);
        //左前轮毂
        expandZuoqianlungu = (ExpandLayout) findViewById(R.id.zuoqianlun_expand);
        expandZuoqianlungu.setTitleText("左前轮毂");
        expandZuoqianlungu.setClickHuaYes(this);
        expandZuoqianlungu.setClickHuaNo(this);
        expandZuoqianlungu.setClickBanYes(this);
        expandZuoqianlungu.setClickBanNo(this);
        expandZuoqianlungu.setClickPenYes(this);
        expandZuoqianlungu.setClickPenNo(this);
        //左后轮毂
        expandZuohoulungu = (ExpandLayout) findViewById(R.id.zuohoulun_expand);
        expandZuohoulungu.setTitleText("左后轮毂");
        expandZuohoulungu.setClickHuaYes(this);
        expandZuohoulungu.setClickHuaNo(this);
        expandZuohoulungu.setClickBanYes(this);
        expandZuohoulungu.setClickBanNo(this);
        expandZuohoulungu.setClickPenYes(this);
        expandZuohoulungu.setClickPenNo(this);
        //右前轮毂
        expandYouqianlungu = (ExpandLayout) findViewById(R.id.youqianlun_expand);
        expandYouqianlungu.setTitleText("右前轮毂");
        expandYouqianlungu.setClickHuaYes(this);
        expandYouqianlungu.setClickHuaNo(this);
        expandYouqianlungu.setClickBanYes(this);
        expandYouqianlungu.setClickBanNo(this);
        expandYouqianlungu.setClickPenYes(this);
        expandYouqianlungu.setClickPenNo(this);
        //右后轮毂
        expandYouhoulungu = (ExpandLayout) findViewById(R.id.youhoulun_expand);
        expandYouhoulungu.setTitleText("右后轮毂");
        expandYouhoulungu.setClickHuaYes(this);
        expandYouhoulungu.setClickHuaNo(this);
        expandYouhoulungu.setClickBanYes(this);
        expandYouhoulungu.setClickBanNo(this);
        expandYouhoulungu.setClickPenYes(this);
        expandYouhoulungu.setClickPenNo(this);
        //后杠
        expandHougang = (ExpandLayout) findViewById(R.id.hougang_expand);
        expandHougang.setTitleText("后杠");
        expandHougang.setClickHuaYes(this);
        expandHougang.setClickHuaNo(this);
        expandHougang.setClickBanYes(this);
        expandHougang.setClickBanNo(this);
        expandHougang.setClickPenYes(this);
        expandHougang.setClickPenNo(this);
        //右后叶子板
        expandYouhouyeziban = (ExpandLayout) findViewById(R.id.youhouyezi_expand);
        expandYouhouyeziban.setTitleText("右后叶子板");
        expandYouhouyeziban.setClickHuaYes(this);
        expandYouhouyeziban.setClickHuaNo(this);
        expandYouhouyeziban.setClickBanYes(this);
        expandYouhouyeziban.setClickBanNo(this);
        expandYouhouyeziban.setClickPenYes(this);
        expandYouhouyeziban.setClickPenNo(this);
    }

    private int getHuahenNoNum() {
        int huahenNoNum = huahenNoQiangangNum + huahenNoZuoQianyeziNum + huahenNoZuoqianmenNum + huahenNoZuohoumenNum +
                huahenNoZuohouyezibanNum + huahenNoJigaiNum + huahenNoZuofanguangjingNum + huahenNoYouhoumenNum +
                huahenNoYouqianmenNum + huahenNoYouqianyezibanNum + huahenNoHougaiNum + huahenNoZuodabianNum +
                huahenNoYoudabianNum + huahenNoYoufanguangjingNum + huahenNoZuoqianlunguNum + huahenNoZuohoulunguNum +
                huahenNoYouqianlunguNum + huahenNoYouhoulunguNum + huahenNoHougangNum + huahenNoYouhouyezibanNum;
        return huahenNoNum;
    }

    private int getHuahenYesNum() {
        int huahenYesNum = huahenYesQiangangNum + huahenYesZuoQianyeziNum + huahenYesZuoqianmenNum + huahenYesZuohoumenNum +
                huahenYesZuohouyezibanNum + huahenYesJigaiNum + huahenYesZuofanguangjingNum + huahenYesYouhoumenNum +
                huahenYesYouqianmenNum + huahenYesYouqianyezibanNum + huahenYesHougaiNum + huahenYesZuodabianNum +
                huahenYesYoudabianNum + huahenYesYoufanguangjingNum + huahenYesZuoqianlunguNum + huahenYesZuohoulunguNum +
                huahenYesYouqianlunguNum + huahenYesYouhoulunguNum + huahenYesHougangNum + huahenYesYouhouyezibanNum;
        return huahenYesNum;
    }

    private int getHuahenNum() {
        return getHuahenYesNum() + getHuahenNoNum();
    }

    private int getBanjinYesNum() {
        int banjinYesNum = banjinYesQiangangNum + banjinYesZuoQianyeziNum + banjinYesZuoqianmenNum + banjinYesZuohoumenNum +
                banjinYesZuohouyezibanNum + banjinYesJigaiNum + banjinYesZuofanguangjingNum + banjinYesYouhoumenNum +
                banjinYesYouqianmenNum + banjinYesYouqianyezibanNum + banjinYesHougaiNum + banjinYesZuodabianNum +
                banjinYesYoudabianNum + banjinYesYoufanguangjingNum + banjinYesZuoqianlunguNum + banjinYesZuohoulunguNum +
                banjinYesYouqianlunguNum + banjinYesYouhoulunguNum + banjinYesHougangNum + banjinYesYouhouyezibanNum;
        return banjinYesNum;

    }

    private int getBanjinNoNum() {
        int banjinNoNum = banjinNoQiangangNum + banjinNoZuoQianyeziNum + banjinNoZuoqianmenNum + banjinNoZuohoumenNum +
                banjinNoZuohouyezibanNum + banjinNoJigaiNum + banjinNoZuofanguangjingNum + banjinNoYouhoumenNum +
                banjinNoYouqianmenNum + banjinNoYouqianyezibanNum + banjinNoHougaiNum + banjinNoZuodabianNum +
                banjinNoYoudabianNum + banjinNoYoufanguangjingNum + banjinNoZuoqianlunguNum + banjinNoZuohoulunguNum +
                banjinNoYouqianlunguNum + banjinNoYouhoulunguNum + banjinNoHougangNum + banjinNoYouhouyezibanNum;
        return banjinNoNum;

    }

    private int getBanjinNum() {
        return getBanjinYesNum() + getBanjinNoNum();
    }

    private int getPenqiYesNum() {
        int penqiYesNum = penqiYesQiangangNum + penqiYesZuoQianyeziNum + penqiYesZuoqianmenNum + penqiYesZuohoumenNum +
                penqiYesZuohouyezibanNum + penqiYesJigaiNum + penqiYesZuofanguangjingNum + penqiYesYouhoumenNum +
                penqiYesYouqianmenNum + penqiYesYouqianyezibanNum + penqiYesHougaiNum + penqiYesZuodabianNum +
                penqiYesYoudabianNum + penqiYesYoufanguangjingNum + penqiYesZuoqianlunguNum + penqiYesZuohoulunguNum +
                penqiYesYouqianlunguNum + penqiYesYouhoulunguNum + penqiYesHougangNum + penqiYesYouhouyezibanNum;
        return penqiYesNum;

    }

    private int getPenqiNoNum() {
        int penqiNoNum = penqiNoQiangangNum + penqiNoZuoQianyeziNum + penqiNoZuoqianmenNum + penqiNoZuohoumenNum +
                penqiNoZuohouyezibanNum + penqiNoJigaiNum + penqiNoZuofanguangjingNum + penqiNoYouhoumenNum +
                penqiNoYouqianmenNum + penqiNoYouqianyezibanNum + penqiNoHougaiNum + penqiNoZuodabianNum +
                penqiNoYoudabianNum + penqiNoYoufanguangjingNum + penqiNoZuoqianlunguNum + penqiNoZuohoulunguNum +
                penqiNoYouqianlunguNum + penqiNoYouhoulunguNum + penqiNoHougangNum + penqiNoYouhouyezibanNum;
        return penqiNoNum;
    }

    private int getPenqiNum() {
        return getPenqiNoNum() + getPenqiYesNum();
    }

    private Map<String, String> getHuahenYesMap() {
        int[] huahenYesnums = new int[]{huahenYesQiangangNum, huahenYesZuoQianyeziNum, huahenYesZuoqianmenNum, huahenYesZuohoumenNum,
                huahenYesZuohouyezibanNum, huahenYesJigaiNum, huahenYesZuofanguangjingNum, huahenYesYouhoumenNum, huahenYesYouqianmenNum,
                huahenYesYouqianyezibanNum, huahenYesHougaiNum, huahenYesZuodabianNum, huahenYesYoudabianNum, huahenYesYoufanguangjingNum,
                huahenYesZuoqianlunguNum, huahenYesZuohoulunguNum, huahenYesYouqianlunguNum, huahenYesYouhoulunguNum,
                huahenYesHougangNum, huahenYesYouhouyezibanNum};
        Map<String, String> map = new LinkedHashMap<>();
        for (int i = 0; i < 20; i++) {
            int num = huahenYesnums[i];
            if (num == 0) {
                map.put(Integer.valueOf(i + 1).toString(), "FALSE");
            } else if (num == 1) {
                map.put(Integer.valueOf(i + 1).toString(), "TRUE");
            }
        }
        return map;
    }

    private Map<String, String> getHuahenNoMap() {
        int[] huahenNonums = new int[]{huahenNoQiangangNum, huahenNoZuoQianyeziNum, huahenNoZuoqianmenNum, huahenNoZuohoumenNum,
                huahenNoZuohouyezibanNum, huahenNoJigaiNum, huahenNoZuofanguangjingNum, huahenNoYouhoumenNum, huahenNoYouqianmenNum,
                huahenNoYouqianyezibanNum, huahenNoHougaiNum, huahenNoZuodabianNum, huahenNoYoudabianNum, huahenNoYoufanguangjingNum,
                huahenNoZuoqianlunguNum, huahenNoZuohoulunguNum, huahenNoYouqianlunguNum, huahenNoYouhoulunguNum,
                huahenNoHougangNum, huahenNoYouhouyezibanNum};
        Map<String, String> map = new LinkedHashMap<>();
        for (int i = 0; i < 20; i++) {
            int num = huahenNonums[i];
            if (num == 0) {
                map.put(Integer.valueOf(i + 1).toString(), "FALSE");
            } else if (num == 1) {
                map.put(Integer.valueOf(i + 1).toString(), "TRUE");
            }
        }
        return map;

    }

    private Map<String, String> getBanjinYesMap() {
        int[] banjinyesnums = new int[]{banjinYesQiangangNum, banjinYesZuoQianyeziNum, banjinYesZuoqianmenNum, banjinYesZuohoumenNum,
                banjinYesZuohouyezibanNum, banjinYesJigaiNum, banjinYesZuofanguangjingNum, banjinYesYouhoumenNum, banjinYesYouqianmenNum,
                banjinYesYouqianyezibanNum, banjinYesHougaiNum, banjinYesZuodabianNum, banjinYesYoudabianNum, banjinYesYoufanguangjingNum,
                banjinYesZuoqianlunguNum, banjinYesZuohoulunguNum, banjinYesYouqianlunguNum, banjinYesYouhoulunguNum,
                banjinYesHougangNum, banjinYesYouhouyezibanNum};
        Map<String, String> map = new LinkedHashMap<>();
        for (int i = 0; i < 20; i++) {
            int num = banjinyesnums[i];
            if (num == 0) {
                map.put(Integer.valueOf(i + 1).toString(), "FALSE");
            } else if (num == 1) {
                map.put(Integer.valueOf(i + 1).toString(), "TRUE");
            }
        }
        return map;

    }

    private Map<String, String> getBanjinNoMap() {
        int[] banjinnonums = new int[]{banjinNoQiangangNum, banjinNoZuoQianyeziNum, banjinNoZuoqianmenNum, banjinNoZuohoumenNum,
                banjinNoZuohouyezibanNum, banjinNoJigaiNum, banjinNoZuofanguangjingNum, banjinNoYouhoumenNum, banjinNoYouqianmenNum,
                banjinNoYouqianyezibanNum, banjinNoHougaiNum, banjinNoZuodabianNum, banjinNoYoudabianNum, banjinNoYoufanguangjingNum,
                banjinNoZuoqianlunguNum, banjinNoZuohoulunguNum, banjinNoYouqianlunguNum, banjinNoYouhoulunguNum,
                banjinNoHougangNum, banjinNoYouhouyezibanNum};
        Map<String, String> map = new LinkedHashMap<>();
        for (int i = 0; i < 20; i++) {
            int num = banjinnonums[i];
            if (num == 0) {
                map.put(Integer.valueOf(i + 1).toString(), "FALSE");
            } else if (num == 1) {
                map.put(Integer.valueOf(i + 1).toString(), "TRUE");
            }
        }
        return map;

    }

    private Map<String, String> getPenqiYseMap() {
        int[] penqiyesnums = new int[]{penqiYesQiangangNum, penqiYesZuoQianyeziNum, penqiYesZuoqianmenNum, penqiYesZuohoumenNum,
                penqiYesZuohouyezibanNum, penqiYesJigaiNum, penqiYesZuofanguangjingNum, penqiYesYouhoumenNum, penqiYesYouqianmenNum,
                penqiYesYouqianyezibanNum, penqiYesHougaiNum, penqiYesZuodabianNum, penqiYesYoudabianNum, penqiYesYoufanguangjingNum,
                penqiYesZuoqianlunguNum, penqiYesZuohoulunguNum, penqiYesYouqianlunguNum, penqiYesYouhoulunguNum,
                penqiYesHougangNum, penqiYesYouhouyezibanNum};


        Map<String, String> map = new LinkedHashMap<>();
        for (int i = 0; i < 20; i++) {
            int num = penqiyesnums[i];
            if (num == 0) {
                map.put(Integer.valueOf(i + 1).toString(), "FALSE");
            } else if (num == 1) {
                map.put(Integer.valueOf(i + 1).toString(), "TRUE");
            }
        }
        return map;

    }

    private Map<String, String> getPenqiNoMap() {
        //喷漆，不修
        int[] penqinonums = new int[]{penqiNoQiangangNum, penqiNoZuoQianyeziNum, penqiNoZuoqianmenNum, penqiNoZuohoumenNum,
                penqiNoZuohouyezibanNum, penqiNoJigaiNum, penqiNoZuofanguangjingNum, penqiNoYouhoumenNum, penqiNoYouqianmenNum,
                penqiNoYouqianyezibanNum, penqiNoHougaiNum, penqiNoZuodabianNum, penqiNoYoudabianNum, penqiNoYoufanguangjingNum,
                penqiNoZuoqianlunguNum, penqiNoZuohoulunguNum, penqiNoYouqianlunguNum, penqiNoYouhoulunguNum,
                penqiNoHougangNum, penqiNoYouhouyezibanNum};
        Map<String, String> map = new LinkedHashMap<>();
        for (int i = 0; i < 20; i++) {
            int num = penqinonums[i];
            if (num == 0) {
                map.put(Integer.valueOf(i + 1).toString(), "FALSE");
            } else if (num == 1) {
                map.put(Integer.valueOf(i + 1).toString(), "TRUE");
            }
        }
        return map;

    }

    //描述受伤痕迹的数目，默认为0
    //划痕，维修
    int huahenYesQiangangNum, huahenYesZuoQianyeziNum, huahenYesZuoqianmenNum, huahenYesZuohoumenNum,
            huahenYesZuohouyezibanNum, huahenYesJigaiNum, huahenYesZuofanguangjingNum, huahenYesYouhoumenNum, huahenYesYouqianmenNum,
            huahenYesYouqianyezibanNum, huahenYesHougaiNum, huahenYesZuodabianNum, huahenYesYoudabianNum, huahenYesYoufanguangjingNum,
            huahenYesZuoqianlunguNum, huahenYesZuohoulunguNum, huahenYesYouqianlunguNum, huahenYesYouhoulunguNum,
            huahenYesHougangNum, huahenYesYouhouyezibanNum = 0;


    //划痕，不修
    int huahenNoQiangangNum, huahenNoZuoQianyeziNum, huahenNoZuoqianmenNum, huahenNoZuohoumenNum,
            huahenNoZuohouyezibanNum, huahenNoJigaiNum, huahenNoZuofanguangjingNum, huahenNoYouhoumenNum, huahenNoYouqianmenNum,
            huahenNoYouqianyezibanNum, huahenNoHougaiNum, huahenNoZuodabianNum, huahenNoYoudabianNum, huahenNoYoufanguangjingNum,
            huahenNoZuoqianlunguNum, huahenNoZuohoulunguNum, huahenNoYouqianlunguNum, huahenNoYouhoulunguNum,
            huahenNoHougangNum, huahenNoYouhouyezibanNum = 0;


    //钣金，维修
    int banjinYesQiangangNum, banjinYesZuoQianyeziNum, banjinYesZuoqianmenNum, banjinYesZuohoumenNum,
            banjinYesZuohouyezibanNum, banjinYesJigaiNum, banjinYesZuofanguangjingNum, banjinYesYouhoumenNum, banjinYesYouqianmenNum,
            banjinYesYouqianyezibanNum, banjinYesHougaiNum, banjinYesZuodabianNum, banjinYesYoudabianNum, banjinYesYoufanguangjingNum,
            banjinYesZuoqianlunguNum, banjinYesZuohoulunguNum, banjinYesYouqianlunguNum, banjinYesYouhoulunguNum,
            banjinYesHougangNum, banjinYesYouhouyezibanNum = 0;

    //钣金，不修
    int banjinNoQiangangNum, banjinNoZuoQianyeziNum, banjinNoZuoqianmenNum, banjinNoZuohoumenNum,
            banjinNoZuohouyezibanNum, banjinNoJigaiNum, banjinNoZuofanguangjingNum, banjinNoYouhoumenNum, banjinNoYouqianmenNum,
            banjinNoYouqianyezibanNum, banjinNoHougaiNum, banjinNoZuodabianNum, banjinNoYoudabianNum, banjinNoYoufanguangjingNum,
            banjinNoZuoqianlunguNum, banjinNoZuohoulunguNum, banjinNoYouqianlunguNum, banjinNoYouhoulunguNum,
            banjinNoHougangNum, banjinNoYouhouyezibanNum = 0;

    //喷漆，维修
    int penqiYesQiangangNum, penqiYesZuoQianyeziNum, penqiYesZuoqianmenNum, penqiYesZuohoumenNum,
            penqiYesZuohouyezibanNum, penqiYesJigaiNum, penqiYesZuofanguangjingNum, penqiYesYouhoumenNum, penqiYesYouqianmenNum,
            penqiYesYouqianyezibanNum, penqiYesHougaiNum, penqiYesZuodabianNum, penqiYesYoudabianNum, penqiYesYoufanguangjingNum,
            penqiYesZuoqianlunguNum, penqiYesZuohoulunguNum, penqiYesYouqianlunguNum, penqiYesYouhoulunguNum,
            penqiYesHougangNum, penqiYesYouhouyezibanNum = 0;

    //喷漆，不修
    int penqiNoQiangangNum, penqiNoZuoQianyeziNum, penqiNoZuoqianmenNum, penqiNoZuohoumenNum,
            penqiNoZuohouyezibanNum, penqiNoJigaiNum, penqiNoZuofanguangjingNum, penqiNoYouhoumenNum, penqiNoYouqianmenNum,
            penqiNoYouqianyezibanNum, penqiNoHougaiNum, penqiNoZuodabianNum, penqiNoYoudabianNum, penqiNoYoufanguangjingNum,
            penqiNoZuoqianlunguNum, penqiNoZuohoulunguNum, penqiNoYouqianlunguNum, penqiNoYouhoulunguNum,
            penqiNoHougangNum, penqiNoYouhouyezibanNum = 0;

    //描述受伤痕迹的imageView
    //划痕，维修
    private ImageView huahenYesQiangang, huahenYesZuoQianyezi, huahenYesZuoqianmen, huahenYesZuohoumen,
            huahenYesZuohouyeziban, huahenYesJigai, huahenYesZuofanguangjing, huahenYesYouhoumen, huahenYesYouqianmen,
            huahenYesYouqianyeziban, huahenYesHougai, huahenYesZuodabian, huahenYesYoudabian, huahenYesYoufanguangjing,
            huahenYesZuoqianlungu, huahenYesZuohoulungu, huahenYesYouqianlungu, huahenYesYouhoulungu,
            huahenYesHougang, huahenYesYouhouyeziban;

    //划痕，不修
    private ImageView huahenNoQiangang, huahenNoZuoQianyezi, huahenNoZuoqianmen, huahenNoZuohoumen,
            huahenNoZuohouyeziban, huahenNoJigai, huahenNoZuofanguangjing, huahenNoYouhoumen, huahenNoYouqianmen,
            huahenNoYouqianyeziban, huahenNoHougai, huahenNoZuodabian, huahenNoYoudabian, huahenNoYoufanguangjing,
            huahenNoZuoqianlungu, huahenNoZuohoulungu, huahenNoYouqianlungu, huahenNoYouhoulungu,
            huahenNoHougang, huahenNoYouhouyeziban;

    //钣金，维修
    private ImageView banjinYesQiangang, banjinYesZuoQianyezi, banjinYesZuoqianmen, banjinYesZuohoumen,
            banjinYesZuohouyeziban, banjinYesJigai, banjinYesZuofanguangjing, banjinYesYouhoumen, banjinYesYouqianmen,
            banjinYesYouqianyeziban, banjinYesHougai, banjinYesZuodabian, banjinYesYoudabian, banjinYesYoufanguangjing,
            banjinYesZuoqianlungu, banjinYesZuohoulungu, banjinYesYouqianlungu, banjinYesYouhoulungu,
            banjinYesHougang, banjinYesYouhouyeziban;

    //钣金，不修
    private ImageView banjinNoQiangang, banjinNoZuoQianyezi, banjinNoZuoqianmen, banjinNoZuohoumen,
            banjinNoZuohouyeziban, banjinNoJigai, banjinNoZuofanguangjing, banjinNoYouhoumen, banjinNoYouqianmen,
            banjinNoYouqianyeziban, banjinNoHougai, banjinNoZuodabian, banjinNoYoudabian, banjinNoYoufanguangjing,
            banjinNoZuoqianlungu, banjinNoZuohoulungu, banjinNoYouqianlungu, banjinNoYouhoulungu,
            banjinNoHougang, banjinNoYouhouyeziban;

    //喷漆，维修
    private ImageView penqiYesQiangang, penqiYesZuoQianyezi, penqiYesZuoqianmen, penqiYesZuohoumen,
            penqiYesZuohouyeziban, penqiYesJigai, penqiYesZuofanguangjing, penqiYesYouhoumen, penqiYesYouqianmen,
            penqiYesYouqianyeziban, penqiYesHougai, penqiYesZuodabian, penqiYesYoudabian, penqiYesYoufanguangjing,
            penqiYesZuoqianlungu, penqiYesZuohoulungu, penqiYesYouqianlungu, penqiYesYouhoulungu,
            penqiYesHougang, penqiYesYouhouyeziban;

    //喷漆，不修
    private ImageView penqiNoQiangang, penqiNoZuoQianyezi, penqiNoZuoqianmen, penqiNoZuohoumen,
            penqiNoZuohouyeziban, penqiNoJigai, penqiNoZuofanguangjing, penqiNoYouhoumen, penqiNoYouqianmen,
            penqiNoYouqianyeziban, penqiNoHougai, penqiNoZuodabian, penqiNoYoudabian, penqiNoYoufanguangjing,
            penqiNoZuoqianlungu, penqiNoZuohoulungu, penqiNoYouqianlungu, penqiNoYouhoulungu,
            penqiNoHougang, penqiNoYouhouyeziban;

    //统计数字button
    private RippleView banjinNumBtn, huahenNumBtn, penqiNumBtn;

    //要点击收回和展开的布局对象
    private ExpandLayout expandQiangang, expandZuoqianyezi, expandZuoqianmen, expandZuohoumen,
            expandZuohouyeziban, expandJigai, expandZuofanguangjing, expandYouhoumen, expandYouqianmen,
            expandYouqianyeziban, expandHougai, expandZuodabian, expandYoudabian, expandYoufanguangjing,
            expandZuoqianlungu, expandZuohoulungu, expandYouqianlungu, expandYouhoulungu,
            expandHougang, expandYouhouyeziban;

    //记录每个部位每种伤痕的状况。没有为1。不修为2，修为3
    private int huahenQiangang = 1, banjinQiangang = 1, penqiQiangang = 1, huahenZuoQianyezi = 1, banjinZuoQianyezi = 1, penqiZuoQianyezi = 1,
            huahenZuoqianmen = 1, banjinZuoqianmen = 1, penqiZuoqianmen = 1, huahenZuohoumen = 1, banjinZuohoumen = 1, penqiZuohoumen = 1,
            huahenZuohouyeziban = 1, banjinZuohouyeziban = 1, penqiZuohouyeziban = 1, huahenJigai = 1, banjinJigai = 1, penqiJigai = 1,
            huahenZuofanguangjing = 1, banjinZuofanguangjing = 1, penqiZuofanguangjing = 1, huahenYouhoumen = 1, banjinYouhoumen = 1, penqiYouhoumen = 1,
            huahenYouqianmen = 1, banjinYouqianmen = 1, penqiYouqianmen = 1, huahenYouqianyeziban = 1, banjinYouqianyeziban = 1, penqiYouqianyeziban = 1,
            huahenHougai = 1, banjinHougai = 1, penqiHougai = 1, huahenZuodabian = 1, banjinZuodabian = 1, penqiZuodabian = 1,
            huahenYoudabian = 1, banjinYoudabian = 1, penqiYoudabian = 1, huahenYoufanguangjing = 1, banjinYoufanguangjing = 1, penqiYoufanguangjing = 1,
            huahenZuoqianlungu = 1, banjinZuoqianlungu = 1, penqiZuoqianlungu = 1, huahenZuohoulungu = 1, banjinZuohoulungu = 1, penqiZuohoulungu = 1,
            huahenYouqianlungu = 1, banjinYouqianlungu = 1, penqiYouqianlungu = 1, huahenYouhoulungu = 1, banjinYouhoulungu = 1, penqiYouhoulungu = 1,
            huahenHougang = 1, banjinHougang = 1, penqiHougang = 1, huahenYouhouyeziban = 1, banjinYouhouyeziban = 1, penqiYouhouyeziban = 1;


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.menu_company, menu);
        return true;
    }

    public boolean onOptionsItemSelected(MenuItem item) {
        int id = item.getItemId();
        if (id == android.R.id.home) {
            finish();
            return true;
        }
        return super.onOptionsItemSelected(item);
    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
    }
}
